{{ ngettext('%(num)d artículo', '%(num)d artículos', dates|length) }}
-
{% for article in dates %}
{% set current_year = article.date|strftime('%Y') %}
{% set current_month = article.date|strftime('%m') %}
{% if loop.previtem %}
{% set previous_year = loop.previtem.date|strftime('%Y') %}
{% set previous_month = loop.previtem.date|strftime('%m') %}
{% endif %}
{% if current_year != previous_year %}
{% if loop.previtem %}
- {{ article.date|strftime('%B') }}
-
{% elif current_month != previous_month %}
{% if loop.previtem %}
{% endif %}
- {{ article.date|strftime('%B') }}
-
{% endif %}
- {{ article.title }} {% if loop.last %}