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