selfhost video, drop vimeo

This commit is contained in:
2026-06-29 11:06:23 +02:00
parent 8d08c0e97e
commit a0d4cd150c
+4 -4
View File
@@ -3,10 +3,10 @@
{{ $hasText := ne (.RawContent | strings.TrimSpace) "" }}
{{ $images := .Params.images }}
{{ with .Params.vimeo }}
<div class="vimeo" data-vimeo="{{ . }}">
<button class="vimeo__play" type="button" aria-label="play video">▶ play</button>
</div>
{{ with .Params.video }}
<video class="video" controls preload="none" playsinline{{ with $.Params.thumbnail }} poster="{{ . }}"{{ end }}>
<source src="{{ . }}" type="video/mp4">
</video>
{{ end }}
{{ if or $images $hasText }}