From b2243438e36638d8e442093176cf334abc5026e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 May 2023 18:46:00 +0200 Subject: [PATCH] tags: consistent style for terms #530 #531 consistent in title and tag name plates by not modifing their name --- layouts/_default/index.json | 2 +- layouts/_default/index.search.js | 2 +- layouts/partials/header.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/index.json b/layouts/_default/index.json index bcd1472585..44d61dc52b 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -13,7 +13,7 @@ {{- if not $title }} {{- $title = .Data.Singular | humanize }} {{- end }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (.Title | humanize) }} + {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }} {{- end }} {{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }} {{- end }} diff --git a/layouts/_default/index.search.js b/layouts/_default/index.search.js index 582e788fb7..65da0765a0 100644 --- a/layouts/_default/index.search.js +++ b/layouts/_default/index.search.js @@ -13,7 +13,7 @@ {{- if not $title }} {{- $title = .Data.Singular | humanize }} {{- end }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (.Title | humanize) }} + {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }} {{- end }} {{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }} {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 21991578fc..2c3f9a069d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -18,7 +18,7 @@ {{- if not $title }} {{- $title = .Data.Singular | humanize }} {{- end }} - {{- $title = printf "%s %s %s" (.Title | humanize) (default "::" .Site.Params.titleSeparator) $title }} + {{- $title = printf "%s %s %s" .Title (default "::" .Site.Params.titleSeparator) $title }} {{- end }} {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} @@ -187,7 +187,7 @@ {{- if not $title }} {{- $title = .Data.Singular | humanize }} {{- end }} - {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) ($to.Title | humanize) }} + {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) $to.Title }} {{- end }} {{- if not $title }} {{- $title = $to.Site.Title }}