{{- if eq .Kind "taxonomyTerm" }} {{- range $key, $value := .Data.Terms.ByCount }} {{- $.Scratch.Add "most_used" (slice $value.Name) }} {{- end }} {{- if not ($.Scratch.Get "most_used") }} {{- $description := printf "A full overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular | truncate 180 }} {{- $.Scratch.Set "Description" $description }} {{- else }} {{- $description := printf "A full overview of all pages with %s, ordered by %s, such as: %s" .Data.Plural .Data.Singular ( delimit ( $.Scratch.Get "most_used" ) ", " ", and " ) | truncate 180 }} {{- $.Scratch.Set "Description" $description }} {{- end }} {{- $title := printf "Overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular }} {{- $.Scratch.Set "Title" $title }} {{- else if eq .Kind "taxonomy" }} {{- $description := printf "Overview of all pages with the %s #%s, such as: %s" .Data.Singular $.Title ( index .Pages 0).Title | truncate 160 }} {{- $.Scratch.Set "Description" $description }} {{- $title := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }} {{- $.Scratch.Set "Title" $title }} {{- else }} {{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary ) }} {{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) }} {{- end }} {{- with ($.Scratch.Get "Title") }} {{ . }} - {{ $.Site.Title }} {{- end }} {{- with ($.Scratch.Get "Description") }} {{- end }} {{- with .Site.Author.name }} {{- end }} {{- partial "seo/main.html" . }} {{- with .Site.Params.favicon }} {{- end -}} {{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} {{- end }} {{- with .Site.Author.twitter }} {{- end }} {{- with .Site.Params.fb_app_id }} {{- end }} {{ hugo.Generator -}} {{- if .Site.Params.selfHosted -}} {{- else -}} {{- end -}} {{- if .Site.Params.staticman -}} {{- end -}} {{- if .Site.Params.selfHosted -}} {{- else -}} {{- end -}} {{- if .Site.Params.useHLJS }} {{- else -}} {{- end -}} {{- if .Site.Params.staticman.recaptcha -}} {{- end -}} {{- if .Site.Params.selfHosted -}} {{- else -}} {{- end -}} {{- partial "head_custom.html" . }} {{ template "_internal/google_analytics_async.html" . }}