aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/gif.html
blob: 3ae56fd657c777eb49f941d87e90adcd118c7e81 (plain)
1
2
3
4
5
6
7
<video autoplay loop muted playsinline>
  {% 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, which I use in place of .gifs, and/or the video formats in use here – sorry!
</video>