aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates/archives.html
blob: f437099e6891bd9a1a90d416781c4d069d957eea (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
{% extends "base.html" %}

{% block content_title %}{{ SITENAME }} — Archives{% endblock %}

{%- block content %}
    <section id="page-content">
       <dl>
       {% for article in articles %}
          {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %}
          <dt>
             <h2>{{ article.date.strftime('%B %Y') }}</h2>
             <ul>
          {% endif %}
          
             <li>
                <a rel="bookmark"
                  href="{{ SITEURL }}/{{ article.url }}"
                  title="Lien permanent vers «{{ article.title }}»">
                {{ article.title }}
                </a>
             </li>

          {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %}
             </ul>
          </dt>
          {% endif %}
       {% endfor %}
       </dl>
    </section>
{% endblock content -%}