diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f619f24..43e1064 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,7 +8,14 @@ {{- end }} -{{- with .Description | default .Params.subtitle | default .Summary }} +{{- if eq .Kind "taxonomyTerm" }} + {{- $text := printf "Overview of all pages by %s" .Data.Singular }} + {{- $.Scratch.Set "Description" $text }} +{{- else if eq .Kind "taxonomy" }} + {{- $text := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }} + {{- $.Scratch.Set "Description" $text }} +{{- end }} +{{- with .Description | default .Params.subtitle | default .Summary | default ($.Scratch.Get "Description") }}