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

17 lines
441 B
Twig

{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
{% if posts.paginated is not empty %}
<div class="ribbon">
{{ "Updated posts" | translate }}
</div>
{% endif %}
{% for post in posts.paginated %}
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
{% else %}
<div role="status" class="ribbon">
{{ "There aren't any updated posts." | translate }}
</div>
{% endfor %}
{% endblock %}