wezm.net/v2/templates/shortcodes/video.html

14 lines
457 B
HTML
Raw Normal View History

2023-03-20 00:21:13 +00:00
{% if poster %}
{% else %}
{% set poster = "jpg" %}
{% endif %}
{% if preload %}
{% else %}
{% set preload = "none" %}
{% endif %}
2022-04-19 20:48:54 +00:00
<figure class="text-center">
2024-07-15 11:03:52 +00:00
<video controls preload="{{ preload }}" src="{{ config.base_url }}/{{ video }}" poster="{{ config.base_url }}/{{ video }}.{{ poster }}" {% if loop %}loop="loop"{% endif %} style="max-height: {{ height }}px" aria-label="{{ alt }}"></video>
2022-04-19 20:48:54 +00:00
<figcaption>{{ caption }}</figcaption>
</figure>