wezm.net/v2/templates/shortcodes/video.html
2024-07-16 10:05:07 +10:00

13 lines
457 B
HTML

{% if poster %}
{% else %}
{% set poster = "jpg" %}
{% endif %}
{% if preload %}
{% else %}
{% set preload = "none" %}
{% endif %}
<figure class="text-center">
<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>
<figcaption>{{ caption }}</figcaption>
</figure>