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 }}