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

20 lines
623 B
Twig
Raw Normal View History

2024-06-20 14:10:42 +00:00
{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
{% if posts.paginated is not empty %}
<div class="filter">{{ "Drafts" | translate }}</div>
{% for post in posts.paginated %}
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
2024-09-05 17:51:48 +00:00
{% 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 %}
2024-06-20 14:10:42 +00:00
{% else %}
<div role="status">{{ "You don't have any drafts." | translate }}</div>
2024-09-05 17:51:48 +00:00
{% endif %}
2024-06-20 14:10:42 +00:00
{% endblock %}