audio player added
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user