mirror of
https://gitee.com/butubb8/blowfish.git
synced 2025-12-05 14:17:50 +08:00
fix(term): allow controled by frontmatter
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
{{ .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" }}
|
||||
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
||||
{{ partial $heroStyle . }}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{{ define "main" }}
|
||||
{{ .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" }}
|
||||
{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }}
|
||||
{{ partial $heroStyle . }}
|
||||
|
||||
Reference in New Issue
Block a user