From 75145a91f8ff13e19c8876f5e3de1b0ae82960e6 Mon Sep 17 00:00:00 2001 From: Adi Rabinovich Date: Sun, 8 Jan 2023 15:44:32 -0500 Subject: [PATCH] Fixes issue nunocoracao/blowfish#405 --- layouts/_default/single.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9cb9331b..0b818b5e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,11 @@
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} - {{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }} + {{ $heroStyle := .Site.Params.article.heroStyle }} + {{ if .Params.heroStyle }} + {{ $heroStyle = .Params.heroStyle }} + {{ end }} + {{ $heroStyle := print "partials/hero/" $heroStyle ".html" }} {{ if templates.Exists $heroStyle }} {{ partial $heroStyle . }} {{ else }}