blob: 9bc130f1d1afcc53282b68f8bf57e959bd14759d (
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
| markdownify
-}}
|