Files
BaC/templates/shortcodes/video.html
VC 1ef6dc72ba
Some checks failed
release / build (push) Failing after 6s
🎨: add video support
2025-08-19 13:19:10 +02:00

7 lines
321 B
HTML

<video {% if autoplay %}autoplay{% endif %} {% if loop %}loop{% endif %} controls>
{%- set video_path = page.colocated_path ~ src %}
{%- set type = src | split(pat=".") | last %}
<source src="{{ get_url(path=video_path) }}" type="{{ 'video/' ~ type }}" />
Your browser doesn't support the video.
</video>