aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/imgur-video.html
blob: a4ed76cad985e55d862d0317b5681e51135f6d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{- $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
    "Source"    (print "https://i.imgur.com/" $id ".mp4")
  )
-}}