Skip to content

Commit

Permalink
Fix unwanted warnings with taxonomies
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 8, 2023
1 parent d3ea5e0 commit 0c1aca2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/taxonomy_terms_article_wrapper.html
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/taxonomy_terms_clouds.html
Original file line number Diff line number Diff line change
@@ -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) }}
Expand Down

0 comments on commit 0c1aca2

Please sign in to comment.