blob: b2bba9bdad522f002f1963ed7f9807fcecedaf3a [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
pR0Ps09af9c42013-12-06 04:51:29 -05006{% block subheader %}
7{% include "modules/blogsubheader.html" %}
8{% endblock subheader %}
9
Giulio Fidente44ccac72013-03-21 18:51:03 +010010{% block content %}
Giulio Fidentea5278c12013-03-23 00:33:24 +010011<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010012 <div class="article_text">
Giulio Fidentea5278c12013-03-23 00:33:24 +010013 <dl>
pR0Ps0bb3dbd2014-03-01 16:48:19 -050014 {% for year, year_articles in articles|groupby('date.year')|reverse %}
15 <h2>{{ year }}</h2>
16 {% for _, month_articles in year_articles|groupby('date.month')|reverse %}
17 {# A little gross, but works (need a date object to get the month name). #}
18 <h3>{{ month_articles[0].date.strftime('%B') }}</h3>
19 <ul>
20 {% for article in month_articles %}
pR0Psbcaaaed2015-01-10 18:22:32 -050021 <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 -050022 {% endfor %}
23 </ul>
24 {% endfor %}
Giulio Fidentea5278c12013-03-23 00:33:24 +010025 {% endfor %}
26 </dl>
27 </div>
28</article>
Giulio Fidente44ccac72013-03-21 18:51:03 +010029{% endblock %}