{{ $src := resources.GetMatch (.Get "src") | resources.Fingerprint }} {{ $jmax := $src | resources.Fingerprint }} {{ $j324 := $src.Resize "324x" }} {{ $j648 := $src.Resize "648x" }} {{ $j1296 := $src.Resize "1296x" }} {{ $j2592 := $src.Resize "2592x" }} {{ $width := cond (eq (.Get "half") "true") "324px" "648px" }} {{ with .Get "hint" }} {{ else }} {{ errorf "missing value for param 'hint': %s" .Position }} {{ end }} {{ $hint := .Get "hint" }} {{ $wmax := $src.Resize (printf "%dx%d webp" $src.Width $src.Height) }} {{ $w324 := $src.Resize (print "324x webp " $hint ) }} {{ $w648 := $src.Resize (print "648x webp " $hint ) }} {{ $w1296 := $src.Resize (print "1296x webp " $hint ) }} {{ $w2592 := $src.Resize (print "2592x webp " $hint ) }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
{{ if isset .Params "title" }}

{{ .Get "title" }}

{{ end }} {{ if or (.Get "caption") (.Get "attr") }}

{{ .Get "caption" }} {{ with .Get "attrlink" }} {{ end }} {{ .Get "attr" }} {{ if .Get "attrlink" }} {{ end }}

{{ end }}
{{ end }}