audio player added

This commit is contained in:
SG
2025-06-22 12:12:36 +03:00
parent d58d9464a9
commit 802f8022d0
2 changed files with 18 additions and 0 deletions

View File

@@ -15,7 +15,18 @@
{% if not content_item.omit_second_title %}
<h1>{{ content_item.title }}</h1>
{% endif %}
<article>{{ content_item.html | safe }}</article>
{% if content_item.audio_file %}
<div id="audio" class="mb-4 mt-4">
<audio controls>
<source src="{{ parent_path }}static/audio/{{ content_item.audio_file }}" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
{% endif %}
<div id="categories">
{% for category in content_item.categories %}
<a href="{{ parent_path }}categories/{{ category }}.html" class="mx-1 text-decoration-none small text-muted">{{ category }} </a>