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

20 lines
687 B
Twig

{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
{% if posts.paginated is not empty %}
<div class="filter">{{ "Posts created by &#8220;%s&#8221;" | translate | format(author.name | 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 %}
{% else %}
<div role="status">{{ "This user hasn't created any posts." | translate }}</div>
{% endif %}
{% endblock %}