{{- $src := .Get "src" | default (.Get 0) -}} {{- $caption := .Get "caption" -}} {{- $poster := .Get "poster" -}} {{- with .Page.Resources.GetMatch $src }}{{ $src = .RelPermalink }}{{ end -}} {{- with $poster }}{{ with $.Page.Resources.GetMatch . }}{{ $poster = .RelPermalink }}{{ end }}{{ end -}}
{{- with $caption }}
{{ . | markdownify }}
{{ end }}