wezm.net/v2/templates/shortcodes/video.html
2023-03-20 15:21:36 +10:00

13 lines
398 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 }}" style="max-height: {{ height }}px"></video>
<figcaption>{{ caption }}</figcaption>
</figure>