diff --git a/layouts/partials/article-meta/basic.html b/layouts/partials/article-meta/basic.html index d83c703d..a5dc249a 100644 --- a/layouts/partials/article-meta/basic.html +++ b/layouts/partials/article-meta/basic.html @@ -100,20 +100,26 @@ {{ range $taxonomy, $terms := .Site.Taxonomies }} {{ if (gt (len ($context.GetTerms $taxonomy)) 0) }} {{ range $context.GetTerms $taxonomy }} - {{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }} - {{ if (eq $taxonomy "categories") }} + {{ if (or (eq $taxonomy "authors") (eq $taxonomy "series"))}} + {{/* Ignore authors and series, since they are handled in other places */}} + {{ continue }} + {{ else if (eq $taxonomy "categories") }} + {{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }} {{ $useSecondaryColor := .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }} {{ partial "badge.html" (dict "linkTitle" .LinkTitle "useSecondaryColor" $useSecondaryColor) }} {{ end }} - {{ end }} - {{ if .Params.showTags | default (.Site.Params.article.showTags | default true) }} - {{ if (eq $taxonomy "tags") }} + {{ else if (eq $taxonomy "tags") }} + {{ if .Params.showTags | default (.Site.Params.article.showTags | default true) }} {{ partial "badge.html" .LinkTitle }} {{ end }} + {{ else }} + + {{ partial "badge.html" .LinkTitle }} + {{ end }} {{ end }} {{ end }}