update shortcode video

main
Dominic Reich 6 months ago
parent 5054e77280
commit 9ecd05f363
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -1,7 +1,7 @@
{{- $src := .Get "src" | default (.Get 0) -}}
{{- $title := .Get "title" | default "Shared video" }}
{{- $title := .Get "title" | default (.Get 1) | default "Shared video" }}
<!-- <video controls controlslist="noremoteplayback" preload="metadata" poster="{{ .Page.Permalink }}{{ $src }}.jpg"> -->
<video controls preload="metadata" poster="{{ .Page.Permalink }}{{ $src }}.jpg">
<video controls preload="metadata" poster="{{ .Page.Permalink }}{{ $src }}.jpg" title="{{ $title }}">
<source src="{{ .Page.Permalink }}{{ $src }}.ogv" type="video/ogv" />
<source src="{{ .Page.Permalink }}{{ $src }}.webm" type="video/webm" />
<source src="{{ .Page.Permalink }}{{ $src }}.mp4" type="video/mp4" />
@ -11,4 +11,5 @@
<a href="{{ .Page.Permalink }}{{ $src }}.webm">webm</a>,
<a href="{{ .Page.Permalink }}{{ $src }}.mp4">mp4</a>
</video>
<figcaption class="-mt-3 mb-6 text-center">{{ $title }}</figcaption>

Loading…
Cancel
Save