{{- $src := .Get "src" -}} {{- if not (or (hasPrefix $src "/") (hasPrefix $src "http")) -}} {{- $src = .Page.RelPermalink | path.Join $src -}} {{- end -}}
{{- with .Get "caption" -}}
{{ . }}
{{- end -}}