diff options
Diffstat (limited to 'templates/shortcodes/audio.html')
| -rw-r--r-- | templates/shortcodes/audio.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/shortcodes/audio.html b/templates/shortcodes/audio.html new file mode 100644 index 0000000..3f9368e --- /dev/null +++ b/templates/shortcodes/audio.html @@ -0,0 +1,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> |
