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

14 lines
398 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">
2023-03-20 00:21:13 +00:00
<video controls preload="{{ preload }}" src="{{ config.base_url }}/{{ video }}" poster="{{ config.base_url }}/{{ video }}.{{ poster }}" style="max-height: {{ height }}px"></video>
2022-04-19 20:48:54 +00:00
<figcaption>{{ caption }}</figcaption>
</figure>