{% extends "layouts" ~ DIR ~ "default.twig" %} {% block content %} {# Months? (For yearly archives) #} {% if months is not empty %}

{{ "Archive of %s" | translate | format(archive.when | time("Y")) }}

{% if archive.prev is not empty or 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 %} {% if posts.prev_page() or posts.next_page() %} {% endif %} {% 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 %}