{% extends "base.html" %} {% block title %}Archive | {{ SITENAME }}{% endblock %} {% block subheader %} {% include "modules/blogsubheader.html" %} {% endblock subheader %} {% 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.date.strftime('%b %d, %Y') }} - {{ article.title }}
  • {% endfor %}
{% endfor %} {% endfor %}
{% endblock %}