{{- $imagename := .Destination }} {{- $text := .Text }} {{- $title := .Title }} {{- $isBundle := ne .Page.BundleType "" }} {{- $page := .Page }} {{- if not $isBundle }} {{- $page_dir := path.Dir .Page.File }} {{- $pagebundle_path := path.Join "/" $page_dir }} {{- $page = .Page.Site.GetPage $pagebundle_path }} {{- end -}} {{- with $page.Resources.Get $imagename }}

{{ $text }}

{{- end }}