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

{{- . -}}

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

{{- .Get "caption" | markdownify -}} {{- .Get "attr" | markdownify -}}

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