|
|
@ -2,25 +2,35 @@
|
|
|
|
{{ $autoplay := .Get "autoplay" }}
|
|
|
|
{{ $autoplay := .Get "autoplay" }}
|
|
|
|
{{ $background := .Get "background" }}
|
|
|
|
{{ $background := .Get "background" }}
|
|
|
|
{{ $byline := .Get "byline" }}
|
|
|
|
{{ $byline := .Get "byline" }}
|
|
|
|
|
|
|
|
{{ $caption := .Get "caption" }}
|
|
|
|
{{ $color := .Get "color" }}
|
|
|
|
{{ $color := .Get "color" }}
|
|
|
|
{{ $controls := .Get "controls" | default true }}
|
|
|
|
{{ $controls := .Get "controls" | default true }}
|
|
|
|
{{ $description := .Get "title" | default "Vimeo video" }}
|
|
|
|
{{ $description := .Get "title" | default "Vimeo video" }}
|
|
|
|
{{ $dnt := .Get "dnt" | default site.Config.Privacy.Vimeo.EnableDNT }}
|
|
|
|
{{ $dnt := .Get "dnt" | default site.Config.Privacy.Vimeo.EnableDNT }}
|
|
|
|
|
|
|
|
{{ $float := .Get "float" }}
|
|
|
|
{{ $fullscreen := .Get "fullscreen" | default true }}
|
|
|
|
{{ $fullscreen := .Get "fullscreen" | default true }}
|
|
|
|
|
|
|
|
{{ $height := .Get "height" }}
|
|
|
|
|
|
|
|
{{ $horizontal := .Get "horizontal" }}
|
|
|
|
{{ $keyboard := .Get "keyboard" | default true }}
|
|
|
|
{{ $keyboard := .Get "keyboard" | default true }}
|
|
|
|
{{ $loop := .Get "loop" }}
|
|
|
|
{{ $loop := .Get "loop" }}
|
|
|
|
|
|
|
|
{{ $maxheight := .Get "maxheight" }}
|
|
|
|
|
|
|
|
{{ $maxwidth := .Get "maxwidth" }}
|
|
|
|
{{ $muted := .Get "muted" }}
|
|
|
|
{{ $muted := .Get "muted" }}
|
|
|
|
|
|
|
|
{{ $number := .Get "number" }}
|
|
|
|
|
|
|
|
{{ $numbered := .Get "numbered" }}
|
|
|
|
{{ $pip := .Get "pip" }}
|
|
|
|
{{ $pip := .Get "pip" }}
|
|
|
|
{{ $playsinline := .Get "playsinline" | default true }}
|
|
|
|
{{ $playsinline := .Get "playsinline" | default true }}
|
|
|
|
{{ $portrait := .Get "portrait" }}
|
|
|
|
{{ $portrait := .Get "portrait" }}
|
|
|
|
{{ $quality := .Get "quality" }}
|
|
|
|
{{ $quality := .Get "quality" }}
|
|
|
|
{{ $referrerpolicy := .Get "referrerpolicy" | default "no-referrer" }}
|
|
|
|
{{ $referrerpolicy := .Get "referrerpolicy" | default "no-referrer" }}
|
|
|
|
{{ $speed := .Get "speed" }}
|
|
|
|
{{ $speed := .Get "speed" }}
|
|
|
|
{{ $time := .Get "time" }}
|
|
|
|
|
|
|
|
{{ $texttrack := .Get "texttrack" }}
|
|
|
|
{{ $texttrack := .Get "texttrack" }}
|
|
|
|
|
|
|
|
{{ $time := .Get "time" }}
|
|
|
|
{{ $title := .Get "title" }}
|
|
|
|
{{ $title := .Get "title" }}
|
|
|
|
{{ $transparent := .Get "transparent" | default true }}
|
|
|
|
{{ $transparent := .Get "transparent" | default true }}
|
|
|
|
|
|
|
|
{{ $vertical := .Get "vertical" }}
|
|
|
|
{{ $video := .Get 0 | default (.Get "video") }}
|
|
|
|
{{ $video := .Get 0 | default (.Get "video") }}
|
|
|
|
|
|
|
|
{{ $width := .Get "width" }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $params := slice }}
|
|
|
|
{{ $params := slice }}
|
|
|
|
|
|
|
|
|
|
|
@ -102,6 +112,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ $params = delimit ($params | sort | uniq) "&" }}
|
|
|
|
{{ $params = delimit ($params | sort | uniq) "&" }}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mb-3 ratio ratio-16x9">
|
|
|
|
{{ $src := print "https://player.vimeo.com/video/" $video }}
|
|
|
|
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} {{ with $referrerpolicy }} referrerpolicy="{{ . }}" {{ end }} src="https://player.vimeo.com/video/{{ $video | safeURL }}{{ with $params }}?{{ . | safeURL }}{{ end }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{ with $params }}
|
|
|
|
|
|
|
|
{{ $src = print $src "?" . }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ partial "paige/figure.html" (dict
|
|
|
|
|
|
|
|
"caption" $caption
|
|
|
|
|
|
|
|
"content" (partial "paige/video.html" (dict
|
|
|
|
|
|
|
|
"fullscreen" $fullscreen
|
|
|
|
|
|
|
|
"referrerpolicy" $referrerpolicy
|
|
|
|
|
|
|
|
"src" $src
|
|
|
|
|
|
|
|
"title" $description
|
|
|
|
|
|
|
|
))
|
|
|
|
|
|
|
|
"float" $float
|
|
|
|
|
|
|
|
"gap" 2
|
|
|
|
|
|
|
|
"height" $height
|
|
|
|
|
|
|
|
"horizontal" $horizontal
|
|
|
|
|
|
|
|
"maxheight" $maxheight
|
|
|
|
|
|
|
|
"maxwidth" $maxwidth
|
|
|
|
|
|
|
|
"number" $number
|
|
|
|
|
|
|
|
"numbered" $numbered
|
|
|
|
|
|
|
|
"vertical" $vertical
|
|
|
|
|
|
|
|
"width" $width
|
|
|
|
|
|
|
|
) }}
|
|
|
|