audio in light mode
This commit is contained in:
parent
3e5064e6fd
commit
a3c0853d0d
8
prosopopee/themes/light/templates/sections/audio.html
Normal file
8
prosopopee/themes/light/templates/sections/audio.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% if section.image.type == "audio" %}
|
||||
{% set audio = Audio(section.image) %}
|
||||
{{ audio.copy() }}
|
||||
{% endif %}
|
||||
<h2>{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}</h2>
|
||||
<audio controls>
|
||||
<source src="{{ audio }}.mp3" type="audio/mpeg">
|
||||
</audio>
|
Loading…
x
Reference in New Issue
Block a user