{% extends 'base.html' %} {% block title %} All Posts · {{ super() }} {% endblock title %} {% block head_description %} Full archives of {{ SITENAME|striptags|e }} blog. {% endblock head_description %} {% block meta_tags_in_head %} {{ super() }} {% from '_includes/_defaults.html' import FEATURED_IMAGE, ARCHIVES_URL with context %} {% if FEATURED_IMAGE %} {% endif %} {% endblock meta_tags_in_head %} {% block content %} {% from '_includes/_defaults.html' import ARCHIVES_URL with context %}
{% for article in dates %} {% set year = article.date.strftime('%Y') %} {% if loop.first %}

{{ year }}

{% else %} {% set prevyear = loop.previtem.date.strftime('%Y') %} {% if prevyear != year %}

{{ year }}

{% endif %} {% endif %} {% if loop.last %}
{% else %} {% set next_year = loop.nextitem.date.strftime('%Y') %} {% if next_year != year %}
{% else %} {% endfor %}
{% endblock content %}