{{ 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 -}}