premier commit
This commit is contained in:
50
templates/article.html
Normal file
50
templates/article.html
Normal file
@ -0,0 +1,50 @@
|
||||
{# article sert aux pages ET aux articles #}
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
{% if article.description %}
|
||||
<meta name="description" content="{{article.subtitle}} {{article.description}}" />
|
||||
{% endif %}
|
||||
{% for tag in article.tags %}
|
||||
<meta name="tags" content="{{tag}}" />
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article>
|
||||
<hgroup>
|
||||
<h1>
|
||||
{{ article.title }}
|
||||
</h1>
|
||||
<p>
|
||||
{% if article.modified %}
|
||||
Modifié le <time datetime="{{ article.modified.isoformat() }}">{{ article.modified|strftime('%A %d %B %Y') }}</time>
|
||||
{% else %}
|
||||
Publié le <time datetime="{{ article.date.isoformat() }}">{{ article.date|strftime('%A %d %B %Y') }}</time>
|
||||
{% endif %}
|
||||
|
||||
{% if DISPLAY_AUTHORS %}
|
||||
{% if article.authors %}
|
||||
par
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if loop.last %} {% else %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if article.category %}
|
||||
dans la catégorie <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }} </a>
|
||||
{% endif %}
|
||||
|
||||
{% if article.tags %}
|
||||
avec le(s) mot(s) clé(s)
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if loop.last %}.{% else %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</hgroup>
|
||||
{{ article.content }}
|
||||
</article>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user