{{ if .Get "src" }} {{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }} {{- if .Get "href" -}} {{- end -}} {{ $altText := "" }} {{ with .Get "alt" }} {{ $altText = . }} {{ else }} {{ $altText = (.Get "caption") | markdownify | plainify }} {{ end }} {{ partial "pictureDefaults.html" (dict "img" $image "alt" $altText "x2" true) }} {{- if .Get "href" }}{{ end -}} {{- if .Get "caption" -}}
{{- .Get "caption" | markdownify -}}
{{- end }} {{ end }}