🎨: add video support
Some checks failed
release / build (push) Failing after 6s

This commit is contained in:
VC
2025-08-19 13:19:10 +02:00
parent a94b35ff2f
commit 1ef6dc72ba
2 changed files with 7 additions and 1 deletions

View File

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