mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 22:45:42 -06:00
Merge pull request #407 from adir1/main
🐛 added support for heroStyle via front-matter
This commit is contained in:
commit
9a424d8f06
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
|||
|
||||
<article>
|
||||
{{ 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 }}
|
||||
|
|
Loading…
Reference in a new issue