20 lines
705 B
Twig
20 lines
705 B
Twig
|
{% extends "layouts" ~ DIR ~ "default.twig" %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% if posts.paginated is defined and posts.paginated is not empty %}
|
||
|
<div class="filter">{{ "Posts in category “%s”" | translate | format(category | fix) }}</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("⟵ Newer posts" | translate) }}
|
||
|
{{ posts.next_link("Older posts ⟶" | translate) }}
|
||
|
</nav>
|
||
|
{% endif %}
|
||
|
{% elseif reason is defined %}
|
||
|
<div role="status">{{ reason }}</div>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|