leilukin-tumbleblog/themes/topaz/pages/category.twig

17 lines
499 B
Twig

{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
{% if posts.paginated is defined and posts.paginated is not empty %}
<div class="ribbon">
{{ "Posts in category &#8220;%s&#8221;" | translate | format(category | fix) }}
</div>
{% for post in posts.paginated %}
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
{% endfor %}
{% elseif reason is defined %}
<div role="status" class="ribbon">
{{ reason }}
</div>
{% endif %}
{% endblock %}