diff --git a/layouts/partials/content.html b/layouts/partials/content.html index a5574f3..9b80e5d 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,5 +1,10 @@ {{ if .Params.image }}{{ if not .Params.hide_header_image }} -
+ {{ .Scratch.Set "image" .Params.image }} + {{ if hasPrefix .Params.image "resource:" }} + {{ $resource := .Resources.GetByPrefix (replace .Params.image "resource:" "") }} + {{ .Scratch.Set "image" $resource.Permalink }} + {{ end }} +
{{ end }}{{ end }} {{ partial "breadcrumbs/index.html" . }}

{{ .Title }}