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

13 lines
489 B
Twig
Raw Normal View History

{% 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>
{% endif %}
{% for post in posts.paginated %}
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
{% else %}
<div role="status" class="filter">{{ "This user hasn't created any posts." | translate }}</div>
{% endfor %}
{% endblock %}