diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 47f1cf0..c62ef91 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,9 +23,9 @@ {{- T "old_content_note" -}} {{- end -}} - {{- if .Params.featureImage -}} + {{- with .Params.featureImage -}}
- {{- partial "image" (dict "file" .Params.featureImage "type" "featured") }} + {{- partial "image" (dict "file" . "type" "featured" "Page" $.Page) }}
{{- end -}} {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}