blob: 7201bbd5abffb4b5dce9fd60890d61c23cfa7b4c [file] [log] [blame]
Giulio Fidente44ccac72013-03-21 18:51:03 +01001{% extends "base.html" %}
pR0Ps6bf52272013-12-11 13:25:27 -05002{% block title %}Archive | {{ SITENAME }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +02003
pR0Ps09af9c42013-12-06 04:51:29 -05004{% block subheader %}
5{% include "modules/blogsubheader.html" %}
6{% endblock subheader %}
7
Giulio Fidente44ccac72013-03-21 18:51:03 +01008{% block content %}
Giulio Fidentea5278c12013-03-23 00:33:24 +01009<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010010 <div class="article_text">
Giulio Fidentea5278c12013-03-23 00:33:24 +010011 <dl>
pR0Ps0bb3dbd2014-03-01 16:48:19 -050012 {% for year, year_articles in articles|groupby('date.year')|reverse %}
13 <h2>{{ year }}</h2>
14 {% for _, month_articles in year_articles|groupby('date.month')|reverse %}
15 {# A little gross, but works (need a date object to get the month name). #}
16 <h3>{{ month_articles[0].date.strftime('%B') }}</h3>
17 <ul>
18 {% for article in month_articles %}
19 <li><span>{{ article.date.strftime('%b %d, %Y') }}</span> - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
20 {% endfor %}
21 </ul>
22 {% endfor %}
Giulio Fidentea5278c12013-03-23 00:33:24 +010023 {% endfor %}
24 </dl>
25 </div>
26</article>
Giulio Fidente44ccac72013-03-21 18:51:03 +010027{% endblock %}