aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/audio.html
blob: 3f9368e3695997286a813b8642c40a24a5f8a0eb (plain)
1
2
3
4
5
6
7
<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>