{% extends "layout.html" %} {% block title %}{{ _("Archive") }}{% endblock %} {% from "_entry.html" import render_entry %} {% block contents %} {%- if month_list %}

{% trans %}Archive{% endtrans %}

{%- else -%} {%- if not month %}

{% trans year %}Archive for {{ year }}{% endtrans %}

{%- elif not day %}

{% trans month=date|monthformat %}Archive for {{ month }}{% endtrans %}

{%- else %}

{% trans day=date|dateformat('full') %}Archive for {{ day }}{% endtrans %}

{%- endif %} {%- for post in posts %} {{ render_entry(post) }} {%- endfor %} {%- if pagination.necessary %} {%- endif %} {%- endif %} {% endblock %}