blob: b4658ecfa4f2263189c7108a79a130c1de27a062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{- $id := default "rQIb4Vw" (.Get "id" | default (.Get 0)) -}}
{{- $title := default "Imgur Gif" (.Get "title" | default (.Get 1)) -}}
{{- $caption := default "Imgur Gif" (.Get "caption" | default (.Get 2)) -}}
{{- $options := default "controls autoplay loop muted playsinline"
(.Get "options" | default (.Get 3))
-}}
{{- partial "video-container.html"
(dict
"Author" .Page.Section
"Caption" $caption
"Options" $options
"Slug" (strings.TrimPrefix .Site.BaseURL .Page.Permalink)
"Source" (print "https://i.imgur.com/" $id ".mp4")
)
-}}
|