|
|
|
@ -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>
|
|
|
|
|
|
|
|
|
|