leilukin-tumbleblog/themes/leilukin/feathers/quote.twig

22 lines
573 B
Twig
Raw Normal View History

2024-06-20 14:10:42 +00:00
{% extends "content" ~ DIR ~ "post.twig" %}
{% block content %}
{% if post.title is not empty %}
<h2 class="post_title">
<a href="{{ post.url() }}" rel="bookmark" title="{{ 'Permanent link to &#8220;%s&#8221;' | translate | format(post.title | striptags | normalize | fix(true)) }}">{{ post.title }}</a>
</h2>
{% endif %}
<section class="quote" aria-label="{{ 'Text Content' | translate }}">
<figure>
<blockquote>
{{ post.quote }}
</blockquote>
{% if post.source is not empty %}
<figcaption>
{{ post.source }}
</figcaption>
{% endif %}
</figure>
</section>
{% endblock %}