blob: 2edb9a477ca39a5c61b66e5d7e533bee7e4f34c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{- $id := default "rQIb4Vw" (.Get "id" | default (.Get 0)) -}}
{{- $title := default "Imgur Gif" (.Get "title" | default (.Get 1)) -}}
{{- $caption := default $title (.Get "caption" | default (.Get 2)) -}}
{{- $options := default "controls autoplay loop muted playsinline"
(.Get "options" | default (.Get 3))
-}}
{{- $source := print "https://i.imgur.com/" $id ".mp4" -}}
{{- printf `{{< video source="%s" title="%s" caption="%s" options="%s" >}}`
$source $title $caption $options
| .Page.RenderString
-}}
|