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

{{- .Get "caption" -}}

{{- end}}