diff --git a/config/_default/params.toml b/config/_default/params.toml index dd43b62c..12cefaf7 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -15,6 +15,8 @@ enableCodeCopy = true # mainSections = ["section1", "section2"] # robots = "" +#defaultBackgroundImage = "IMAGE.jpg" # used as default for background images + [header] layout = "basic" # valid options: basic, fixed @@ -85,8 +87,6 @@ enableCodeCopy = true showTermCount = true #showHero = true #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - #layoutBackgroundBlur = true # only used when heroStyle equals background - #layoutBackgroundHeaderSpace = false showBreadcrumbs = false #showViews = false #showLikes = false @@ -96,8 +96,6 @@ enableCodeCopy = true [term] #showHero = true #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - #layoutBackgroundBlur = true # only used when heroStyle equals background - #layoutBackgroundHeaderSpace = false #showViews = false #showLikes = false #showTableOfContents = true diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index bd63ad47..a5aff927 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -15,6 +15,8 @@ enableCodeCopy = true mainSections = ["docs"] # robots = "" +defaultBackgroundImage = "/img/iceland.jpg" + [header] layout = "fixed" # valid options: basic, fixed @@ -84,8 +86,6 @@ mainSections = ["docs"] showTermCount = true showHero = true heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - layoutBackgroundBlur = true # only used when heroStyle equals background - layoutBackgroundHeaderSpace = false showBreadcrumbs = false showViews = true showLikes = true @@ -95,8 +95,6 @@ mainSections = ["docs"] [term] showHero = true heroStyle = "background" # valid options: basic, big, background, thumbAndBackground - layoutBackgroundBlur = true # only used when heroStyle equals background - layoutBackgroundHeaderSpace = false showSummary = false showViews = true showLikes = true diff --git a/exampleSite/resources/_gen/images/tags/featured_huc648350f543f5a6da75f60f86e4aecc9_625096_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/tags/featured_huc648350f543f5a6da75f60f86e4aecc9_625096_1200x0_resize_box_3.png new file mode 100644 index 00000000..1675d73b Binary files /dev/null and b/exampleSite/resources/_gen/images/tags/featured_huc648350f543f5a6da75f60f86e4aecc9_625096_1200x0_resize_box_3.png differ diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 8c523d1d..61cdc0d2 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,4 +1,18 @@ {{ define "main" }} + +{{ .Scratch.Set "scope" "list" }} +{{ if .Site.Params.taxonomy.showHero | default false }} +{{ $heroStyle := print "partials/hero/" .Site.Params.taxonomy.heroStyle ".html" }} +{{ if templates.Exists $heroStyle }} +{{ partial $heroStyle . }} +{{ else }} +{{ partial "partials/hero/basic.html" . }} +{{ end }} +{{- end -}} + +{{ $toc := and (.Params.showTableOfContents | default (.Site.Params.taxonomy.showTableOfContents | default false)) (in +.TableOfContents " {{ if .Params.showBreadcrumbs | default (.Site.Params.taxonomy.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }}