diff options
-rw-r--r-- | themes/default/layouts/partials/base-title.html | 17 |
1 files 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 -}} |