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) "" }} {{ $hasText := ne (.RawContent | strings.TrimSpace) "" }}
{{ $images := .Params.images }} {{ $images := .Params.images }}
{{ with .Params.vimeo }} {{ with .Params.video }}
<div class="vimeo" data-vimeo="{{ . }}"> <video class="video" controls preload="none" playsinline{{ with $.Params.thumbnail }} poster="{{ . }}"{{ end }}>
<button class="vimeo__play" type="button" aria-label="play video">▶ play</button> <source src="{{ . }}" type="video/mp4">
</div> </video>
{{ end }} {{ end }}
{{ if or $images $hasText }} {{ if or $images $hasText }}