{% load i18n apphooks_config_tags %} {% regroup dates by date.year as years %} {% with current_year=year current_month=month %}
{% for year in years %} {# month list #}
{# NOTE: Wrapping the following anchor markup will break tests #} {% for month in year.list %} {{ month.date|date:"F" }}{{ month.num_articles }} {% endfor %}
{% empty %}

{% trans "No items available" %}

{% endfor %}
{% endwith %}