video support

This commit is contained in:
ParkerTenBroeck 2026-01-19 13:13:23 -05:00
parent 3e6f2f3247
commit 0a882b6614
12 changed files with 63 additions and 31 deletions

View file

@ -1,5 +1,5 @@
<figure class="image {% if class %} {{ class }} {% endif %}">
<img src="{{ get_url(path=src) }}" loading="lazy" decoding="async" class="zoomable" data-full="{{ get_url(path=src) }}">
<figure class="{% if class %} {{ class }} {% endif %}">
<img src="{{ get_url(path=src) }}" loading="lazy" decoding="async" class="zoomable">
{% if caption != "" %}
<figcaption>{{ caption }}</figcaption>
{% endif %}

View file

@ -0,0 +1,17 @@
<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>