newblog/templates/shortcodes/video.html

8 lines
340 B
HTML
Raw Permalink Normal View History

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