leilukin-tumbleblog/themes/topaz/feathers/audio.twig

23 lines
731 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 %}
<header>
<h2>
<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>
<h3>
<a href="{{ url('author/' ~ post.author.id) }}">{{ "Written by %s" | translate | format(post.author.name) }}</a>
</h3>
</header>
{% endif %}
{% if post.description is not empty %}
<section class="description" aria-label="{{ 'Text Content' | translate }}">
{{ post.description }}
</section>
{% endif %}
<section class="audio" aria-label="{{ 'File Attachment' | translate }}">
{{ post.audio_player }}
</section>
{% endblock %}