blob: 872fe49c290d91b0b7bef61078b94e0769fdf930 [file] [log] [blame]
{% extends "base.html" %}
{% block title %}Archive | {{ SITENAME }}{% endblock %}
{% block description %}A listing of all posts on this site{% endblock %}
{% block subheader %}
{% include "modules/blogsubheader.html" %}
{% endblock subheader %}
{% block content %}
<article>
<div class="article_text">
<dl>
{% for year, year_articles in articles|groupby('date.year')|reverse %}
<h2>{{ year }}</h2>
{% for _, month_articles in year_articles|groupby('date.month')|reverse %}
{# A little gross, but works (need a date object to get the month name). #}
<h3>{{ month_articles[0].date.strftime('%B') }}</h3>
<ul>
{% for article in month_articles %}
<li><time datetime="{{ article.date }}">{{ article.date.strftime('%b %d, %Y') }}</time> - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endfor %}
</dl>
</div>
</article>
{% endblock %}