From 0c1aca2e18fdddf68996aedf737da1b24713bef2 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Wed, 8 Mar 2023 14:48:01 +0100 Subject: [PATCH] Fix unwanted warnings with taxonomies --- layouts/partials/taxonomy_terms_article_wrapper.html | 4 ++-- layouts/partials/taxonomy_terms_clouds.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/taxonomy_terms_article_wrapper.html b/layouts/partials/taxonomy_terms_article_wrapper.html index 7730bc0cb0..e20af69a89 100644 --- a/layouts/partials/taxonomy_terms_article_wrapper.html +++ b/layouts/partials/taxonomy_terms_article_wrapper.html @@ -1,6 +1,6 @@ {{ $context := . }} -{{ if isset .Site.Params "taxonomy" }} - {{ if isset .Site.Params.Taxonomy "taxonomypageheader" }} +{{ if .Site.Params.Taxonomy }} + {{ if .Site.Params.Taxonomy.taxonomyPageHeader }} {{ range $index, $taxo := .Site.Params.Taxonomy.taxonomyPageHeader }} {{ partial "taxonomy_terms_article.html" (dict "context" $context "taxo" $taxo) }} {{ end }} diff --git a/layouts/partials/taxonomy_terms_clouds.html b/layouts/partials/taxonomy_terms_clouds.html index a1b41556a9..b8f6f566de 100644 --- a/layouts/partials/taxonomy_terms_clouds.html +++ b/layouts/partials/taxonomy_terms_clouds.html @@ -1,8 +1,8 @@ {{ $context := . }} -{{ if isset .Site.Params "taxonomy" }} - {{ if isset .Site.Params.Taxonomy "taxonomycloud" }} +{{ if .Site.Params.taxonomy }} + {{ if .Site.Params.Taxonomy.taxonomyCloud }} {{ range $index, $taxo := .Site.Params.Taxonomy.taxonomyCloud }} - {{ if isset $.Site.Params.Taxonomy "taxonomycloudtitle" }} + {{ if $.Site.Params.Taxonomy.taxonomyCloudTitle" }} {{ $.Scratch.Set "title" (index $.Site.Params.Taxonomy.taxonomyCloudTitle $index) }} {{ else }} {{ $.Scratch.Set "title" (humanize $taxo) }}