ParkerTenBroeck.github.io/templates/shortcodes/video.html
ParkerTenBroeck 0a882b6614 video support
2026-01-19 13:13:23 -05:00

17 lines
532 B
HTML

<figure class="{% if class %} {{ class }} {% endif %}">
<video
{% if poster %} poster="{{ poster }}"{% endif %}
{% if loop | default(value=false) %} loop {% endif %}
{% if controls | default(value=true) %} controls {% endif %}
preload="metadata"
muted
{% if autoplay | default(value=false) %} autoplay {% endif %}
playsinline
>
<source src="{{ get_url(path=src) }}">
</video>
{% if caption != "" %}
<figcaption>{{ caption }}</figcaption>
{% endif %}
</figure>