added video

This commit is contained in:
2026-04-28 08:41:31 +00:00
parent 584a1b615b
commit fb802bd6d9

View File

@@ -0,0 +1,14 @@
{{ $src := .Get "src" }}
{{ $type := .Get "type" | default "video/mp4" }}
{{ $width := .Get "width" | default "100%" }}
{{ $height := .Get "height" | default "auto" }}
{{ $controls := .Get "controls" | default "true" }}
<video
width="{{ $width }}"
height="{{ $height }}"
{{ if eq $controls "true" }}controls{{ end }}>
<source src="{{ $src }}" type="{{ $type }}">
Your browser does not support the video tag.
</video>