newblog/templates/shortcodes/audio.html
2024-07-01 13:20:09 +00:00

8 lines
340 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>