-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use isset for check parameter .Site.Params.Taxonomy.taxonomyCloud * built wrapper for taxonomy infos in page header use isset for check parameter .Site.Params.Taxonomy.taxonomyPageHeader * use partial taxonomy_terms_article_wrapper * manual for partial taxonomy_terms_article_wrapper * code cleaning * code cleaning Co-authored-by: LisaFC <lcarey@google.com>
- Loading branch information
Showing
11 changed files
with
32 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{ $context := . }} | ||
{{ if isset .Site.Params.Taxonomy "taxonomypageheader" }} | ||
{{ range $index, $taxo := .Site.Params.Taxonomy.taxonomyPageHeader }} | ||
{{ partial "taxonomy_terms_article.html" (dict "context" $context "taxo" $taxo) }} | ||
{{ end }} | ||
{{ else }} | ||
{{ range $taxo, $taxo_map := .Site.Taxonomies }} | ||
{{ partial "taxonomy_terms_article.html" (dict "context" $context "taxo" $taxo) }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{{ $context := . }} | ||
{{ if .Site.Params.Taxonomy.taxonomyCloud }} | ||
{{ if isset .Site.Params.Taxonomy "taxonomycloud" }} | ||
{{ range $index, $taxo := .Site.Params.Taxonomy.taxonomyCloud }} | ||
{{ if isset $.Site.Params.Taxonomy "taxonomycloudtitle" }} | ||
{{ $.Scratch.Set "title" ( index $.Site.Params.Taxonomy.taxonomyCloudTitle $index ) }} | ||
{{ $.Scratch.Set "title" (index $.Site.Params.Taxonomy.taxonomyCloudTitle $index) }} | ||
{{ else }} | ||
{{ $.Scratch.Set "title" ( humanize $taxo ) }} | ||
{{ $.Scratch.Set "title" (humanize $taxo) }} | ||
{{ end }} | ||
{{ partial "taxonomy_terms_cloud.html" (dict "context" $context "taxo" $taxo "title" ( $.Scratch.Get "title") ) }} | ||
{{ partial "taxonomy_terms_cloud.html" (dict "context" $context "taxo" $taxo "title" ($.Scratch.Get "title")) }} | ||
{{ end }} | ||
{{ else }} | ||
{{ range $taxo, $taxo_map := .Site.Taxonomies }} | ||
{{ partial "taxonomy_terms_cloud.html" (dict "context" $context "taxo" $taxo "title" ( humanize $taxo ) ) }} | ||
{{ partial "taxonomy_terms_cloud.html" (dict "context" $context "taxo" $taxo "title" (humanize $taxo)) }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters