blob: 871360f8133022cfc34cbdf3121cee5fa4d666bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}
{% for article in articles %}
{# First item #}
{% if loop.first %}
<header>
<h1><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> : <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
</header>
<article>
{{ article.content }}{% include 'comments.html' %}
</article>
{% if loop.length > 1 %}
<section id="article-list">
<h2>Tous les articles</h2>
<ol>
{% endif %}
{# other items #}
{% else %}
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
{% endif %}
{% endfor %}
{% if loop.length > 1 %}
</ol>
</section><!-- #article-list -->
{% endif %}
{% else %}
Pas d'articles pour le moment.
{% endif %}
{% endblock content %}
|