aboutsummaryrefslogblamecommitdiffstats
path: root/dev-random/templates/archives.html
blob: f96954996b9a929e280d14df3a81392baf102dc8 (plain) (tree)
1
2
3
4
5
6
7




                                                                  
                             
                       










                                                                                                                 
                                                                                


                                   
 






                                                                                                                
                       
{% extends "base.html" %}

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

{%- block content %}
    <section class="content">
      <h1>Archives</h1>
       <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|striptags }}»">
                {{ 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 -%}