{% extends "layout.html" %} {% block title %}{% trans "Archive" %}{% endblock %} {% include "_post.html" %} {% block contents %} {%- if not month %}

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

{%- elif not day %}

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

{%- else %}

{% trans year, month, day %}Archive for {{ month }} {{ day }}, {{ year }}{% endtrans %}

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