{{- $original := .Page.Resources.GetMatch (.Get "src") -}} {{- /* Trimming the slash and adding absURL make sure the image works no matter where our site lives */ -}} {{- $default_image_url := (trim $original.RelPermalink "/") | absURL }} {{- /* Standard width of main is 70% (w-70-ns) */ -}} {{- $target_width := 0.70 -}} {{ $srcset := partial "func/GetImageSrcset" (dict "original" $original "target_width" $target_width) }} {{ $class := .Get "class" | default "mh0" }} {{- if .Get "link" -}} {{- end -}} {{ with .Get {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
{{ with (.Get "title") -}}

{{ . }}

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

{{- .Get "caption" | markdownify -}} {{- with .Get "attrlink" }} {{- end -}} {{- .Get "attr" | markdownify -}} {{- if .Get "attrlink" }}{{ end }}

{{- end }}
{{- end }}