diff --git a/config/_default/params.toml b/config/_default/params.toml index bcdfd4d8..bf5dfee0 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -52,6 +52,7 @@ enableCodeCopy = false showSummary = false showTableOfContents = false groupByYear = true + showTaxonomies = false [sitemap] excludedKinds = ["taxonomy", "term"] diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 07579abe..47a2f702 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -52,6 +52,7 @@ mainSections = ["samples"] showSummary = false showTableOfContents = true groupByYear = false + showTaxonomies = false [sitemap] excludedKinds = ["taxonomy", "term"] diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html index 7b397796..190811ec 100644 --- a/layouts/partials/article-meta.html +++ b/layouts/partials/article-meta.html @@ -46,7 +46,10 @@ {{/* Output taxonomies */}} - {{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }} + {{ if or + (and (ne $scope "single") (.Params.showTaxonomies | default (.Site.Params.list.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false)))) + (and (eq $scope "single") (.Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false))) + }}