From 9f8738249627488e790dc251ac18ef2315c3335a Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 22 Feb 2023 21:47:52 -0500 Subject: themes/default/layouts/partials/base-title: Use page kind To ensure consistent title --- themes/default/layouts/partials/base-title.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/themes/default/layouts/partials/base-title.html b/themes/default/layouts/partials/base-title.html index 4d5bd92..b34355d 100644 --- a/themes/default/layouts/partials/base-title.html +++ b/themes/default/layouts/partials/base-title.html @@ -1,14 +1,19 @@ -{{ $author := index .Site.Data ((or .Params.author .Site.Author.default.title) | default "default") }} +{{- $author := index .Site.Data ((or .Params.author .Site.Author.default.title) | default "default") -}} {{- if not (eq .Title $.Site.Title) -}} - {{- with or .Title .Summary -}} - {{ . }} — + {{- with $title := or .Title .Summary -}} + {{ $title }} — {{ end }} {{- end -}} -{{- with $.Site.Title -}} - {{ if $.IsHome -}} - {{ . }} +{{- with $title := $.Site.Title -}} + {{- if (in (slice + "home" + "taxonomy" + "term" + ) $.Page.Kind) + -}} + {{ $title }} {{- else -}} {{ $author.title }} {{- end -}} -- cgit v1.2.3