mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 11:32:30 -06:00
Fixes issue nunocoracao/blowfish#405
This commit is contained in:
parent
e6e8b05e07
commit
75145a91f8
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
|
{{ 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 }}
|
{{ if templates.Exists $heroStyle }}
|
||||||
{{ partial $heroStyle . }}
|
{{ partial $heroStyle . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in a new issue