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 }}