{{ $src := resources.GetMatch (.Get "src") | resources.Fingerprint }} {{ $jmax := $src | resources.Fingerprint }} {{ $j350 := $src.Resize "350x" }} {{ $j700 := $src.Resize "700x" }} {{ $j1400 := $src.Resize "1400x" }} {{ $j2800 := $src.Resize "2800x" }} {{ $width := cond (eq (.Get "half") "true") "350px" "700px" }} {{ 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) }} {{ $w350 := $src.Resize (print "350x webp " $hint ) }} {{ $w700 := $src.Resize (print "700x webp " $hint ) }} {{ $w1400 := $src.Resize (print "1400x webp " $hint ) }} {{ $w2800 := $src.Resize (print "2800x webp " $hint ) }}
{{ with .Get "link" }}{{ end }} {{ if .Get "link" }}{{ end }} {{ 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 }}