newblog/templates/shortcodes/gif.html
2024-07-01 13:20:09 +00:00

8 lines
395 B
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>