leilukin-tumbleblog/themes/virgula/pages/updated.twig

20 lines
647 B
Twig

{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
{% if posts.paginated is not empty %}
<div class="filter">{{ "Updated posts" | translate }}</div>
{% for post in posts.paginated %}
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
{% endfor %}
{% if posts.prev_page() or posts.next_page() %}
<!-- Navigation -->
<nav class="traversal">
{{ posts.prev_link("&xlarr; Newer posts" | translate) }}
{{ posts.next_link("Older posts &xrarr;" | translate) }}
</nav>
{% endif %}
{% else %}
<div role="status">{{ "There aren't any updated posts." | translate }}</div>
{% endif %}
{% endblock %}