newblog/templates/shortcodes/audio.html

8 lines
340 B
HTML
Raw Normal View History

2024-07-01 15:20:09 +02:00
<audio controls>
{% for source in sources -%}
{% set type = source | split(pat=".") | last -%}
<source src="{{ config.base_url | safe }}{{ page.path | safe }}{{ source | safe }}" type="{{ 'audio/' ~ type }}" />
{% endfor -%}
Your browser doesn't support the audio tag and/or the audio formats in use here  sorry!
</audio>