{% extends "layouts" ~ DIR ~ "default.twig" %} {% block content %} {# Months? (For yearly archives) #} {% if months is not empty %} {% if archive.prev is not empty %} {% endif %}
{% for when, month in months %}

{{ when | time("F Y" | translate) | title }}

{% endfor %}
{% if archive.next is not empty %} {% endif %} {% endif %} {# Posts? (For daily/monthly archives) #} {% if posts.paginated is not empty %}
{{ "Archive of %s" | translate | format(archive.when | time(archive.depth == "day" ? "d F Y" : "F Y")) }}
{% for post in posts.paginated %} {% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %} {% endfor %} {% endif %} {# No results #} {% if months is empty and posts.paginated is empty %}
{{ "There aren't any posts in the timeframe you specified." | translate }}
{% endif %} {% endblock %}