mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -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>
|
<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