{% extends "base.html" %} {% block title %}Archive | {{ SITENAME }}{% endblock %} {% block description %}A listing of all posts on this site{% endblock %} {% block content %}
{% for year, year_articles in articles|groupby('date.year')|reverse %}

{{ year }}

{% for _, month_articles in year_articles|groupby('date.month')|reverse %} {# A little gross, but works (need a date object to get the month name). #}

{{ month_articles[0].date.strftime('%B') }}

    {% for article in month_articles %}
  • - {{ article.title }}
  • {% endfor %}
{% endfor %} {% endfor %}
{% endblock %}