{% extends "layout.html" %} {% block content %}

# {{ _('History') }}

{% if month != None %}

## {{ year }}

### {{ month | month_name }}

{% elif year != None %}

## {{ _('all years') }}

### {{ year }}

{% endif %}

{% for article in articles_counter %} {% if year == None %}
- {{ article }} : {{ articles_counter[article] }} articles
{% elif month == None %}
- {{ article | month_name }} : {{ articles_counter[article] }} articles
{% else %} {% for article in articles | sort(attribute="date", reverse = True) %}
- {{ article.date | datetime }} - {{ article.title | safe }}
{% endfor %} {% endif %} {% endfor %}

{% endblock %}