mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-09 04:29:21 +00:00
fix(term): allow controled by frontmatter
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Scratch.Set "scope" "term" }}
|
{{ .Scratch.Set "scope" "term" }}
|
||||||
{{ if site.Params.term.showHero | default false }}
|
{{ $showHero := .Params.showHero | default site.Params.term.showHero | default false }}
|
||||||
|
{{ if $showHero }}
|
||||||
{{ $heroStyle := print "hero/" site.Params.term.heroStyle ".html" }}
|
{{ $heroStyle := print "hero/" site.Params.term.heroStyle ".html" }}
|
||||||
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
||||||
{{ partial $heroStyle . }}
|
{{ partial $heroStyle . }}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Scratch.Set "scope" "list" }}
|
{{ .Scratch.Set "scope" "list" }}
|
||||||
{{ if site.Params.taxonomy.showHero | default false }}
|
{{ $showHero := .Params.showHero | default site.Params.term.showHero | default false }}
|
||||||
|
{{ if $showHero }}
|
||||||
{{ $heroStyle := print "hero/" site.Params.taxonomy.heroStyle ".html" }}
|
{{ $heroStyle := print "hero/" site.Params.taxonomy.heroStyle ".html" }}
|
||||||
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
||||||
{{ partial $heroStyle . }}
|
{{ partial $heroStyle . }}
|
||||||
|
|||||||
Reference in new issue
Block a user