Separate vimeo and figure shortcodes
This commit is contained in:
@@ -2,21 +2,16 @@
|
|||||||
{{ $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" }}
|
{{ $height := .Get "height" }}
|
||||||
{{ $horizontal := .Get "horizontal" }}
|
|
||||||
{{ $keyboard := .Get "keyboard" | default true }}
|
{{ $keyboard := .Get "keyboard" | default true }}
|
||||||
{{ $loop := .Get "loop" }}
|
{{ $loop := .Get "loop" }}
|
||||||
{{ $maxwidth := .Get "maxwidth" }}
|
{{ $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" }}
|
||||||
@@ -27,7 +22,6 @@
|
|||||||
{{ $time := .Get "time" }}
|
{{ $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" }}
|
{{ $width := .Get "width" }}
|
||||||
|
|
||||||
@@ -117,21 +111,13 @@
|
|||||||
{{ $src = print $src "?" . }}
|
{{ $src = print $src "?" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "paige/figure.html" (dict
|
<div class="paige-vimeo">
|
||||||
"caption" $caption
|
{{ partial "paige/video.html" (dict
|
||||||
"content" (partial "paige/video.html" (dict
|
|
||||||
"fullscreen" $fullscreen
|
"fullscreen" $fullscreen
|
||||||
"height" $height
|
"height" $height
|
||||||
"referrerpolicy" $referrerpolicy
|
"referrerpolicy" $referrerpolicy
|
||||||
"src" $src
|
"src" $src
|
||||||
"title" $description
|
"title" $description
|
||||||
"width" $width
|
"width" $width
|
||||||
))
|
|
||||||
"float" $float
|
|
||||||
"gap" 2
|
|
||||||
"horizontal" $horizontal
|
|
||||||
"maxwidth" $maxwidth
|
|
||||||
"number" $number
|
|
||||||
"numbered" $numbered
|
|
||||||
"vertical" $vertical
|
|
||||||
) }}
|
) }}
|
||||||
|
</div>
|
||||||
|
Reference in New Issue
Block a user