blob: 2985f8569c72338cf16ae6d5d43b31128550cf5f [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
pR0Psd44c2f92014-12-18 01:49:27 -05004{% block description %}A listing of all posts on this site{% endblock %}
5
Giulio Fidente44ccac72013-03-21 18:51:03 +01006{% block content %}
Giulio Fidentea5278c12013-03-23 00:33:24 +01007<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +01008 <div class="article_text">
Giulio Fidentea5278c12013-03-23 00:33:24 +01009 <dl>
pR0Ps0bb3dbd2014-03-01 16:48:19 -050010 {% for year, year_articles in articles|groupby('date.year')|reverse %}
11 <h2>{{ year }}</h2>
12 {% for _, month_articles in year_articles|groupby('date.month')|reverse %}
13 {# A little gross, but works (need a date object to get the month name). #}
14 <h3>{{ month_articles[0].date.strftime('%B') }}</h3>
15 <ul>
16 {% for article in month_articles %}
pR0Psbcaaaed2015-01-10 18:22:32 -050017 <li><time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b %d, %Y') }}</time> - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
pR0Ps0bb3dbd2014-03-01 16:48:19 -050018 {% endfor %}
19 </ul>
20 {% endfor %}
Giulio Fidentea5278c12013-03-23 00:33:24 +010021 {% endfor %}
22 </dl>
23 </div>
24</article>
Giulio Fidente44ccac72013-03-21 18:51:03 +010025{% endblock %}