From 40872211d2975ac35d703e040fa561c2f363d305 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 17 May 2022 05:45:50 -0400 Subject: config: Control default title For pages where the titles are auto generated, choose default author's title as title. --- config.json | 1 + config.toml | 1 + config.yaml | 1 + themes/default/layouts/partials/site-title.html | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 0a0b91f..5f87944 100644 --- a/config.json +++ b/config.json @@ -13,6 +13,7 @@ "footer": "canory", "home": "canory", "picturegallery": "canory", + "title": "canory", "user": "default", "webring": "canory" }, diff --git a/config.toml b/config.toml index a21f773..c228645 100644 --- a/config.toml +++ b/config.toml @@ -14,6 +14,7 @@ enableRobotsTXT = true footer = "canory" home = "canory" picturegallery = "canory" + title = "canory" user = "default" webring = "canory" diff --git a/config.yaml b/config.yaml index b33206f..c52023a 100644 --- a/config.yaml +++ b/config.yaml @@ -15,6 +15,7 @@ author: footer: canory home: canory picturegallery: canory + title : canory user: default webring: canory footer: > diff --git a/themes/default/layouts/partials/site-title.html b/themes/default/layouts/partials/site-title.html index ed09ec3..99f027b 100644 --- a/themes/default/layouts/partials/site-title.html +++ b/themes/default/layouts/partials/site-title.html @@ -1,4 +1,4 @@ -{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }} +{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.title) | default "default") }} {{- if not (eq .Title $.Site.Title) -}} {{- with or .Title .Summary -}} -- cgit v1.2.3