{{- $page := . -}} {{- with $page.Params.headerimage }}
{{- if eq $page.BundleType "leaf" }} {{- with $page.Resources.GetMatch .src }} {{- end }} {{- else }} {{- with resources.GetMatch (printf "**/%s" .src) }} {{- end }} {{- end }} {{- with .text }}

{{ . | markdownify }}

{{ end }}
{{- end }}