{{ with .Get "link"}}{{ end }}
{{ $base := (findRE "/[a-zA-Z0-9_]+/" .Site.BaseURL) }}
{{ 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 }}