Skip to content

Commit b224343

Browse files
committed
tags: consistent style for terms matcornic#530 matcornic#531
consistent in title and tag name plates by not modifing their name
1 parent 5099b5b commit b224343

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

layouts/_default/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{- if not $title }}
1414
{{- $title = .Data.Singular | humanize }}
1515
{{- end }}
16-
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (.Title | humanize) }}
16+
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }}
1717
{{- end }}
1818
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
1919
{{- end }}

layouts/_default/index.search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{- if not $title }}
1414
{{- $title = .Data.Singular | humanize }}
1515
{{- end }}
16-
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) (.Title | humanize) }}
16+
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }}
1717
{{- end }}
1818
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
1919
{{- end }}

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{- if not $title }}
1919
{{- $title = .Data.Singular | humanize }}
2020
{{- end }}
21-
{{- $title = printf "%s %s %s" (.Title | humanize) (default "::" .Site.Params.titleSeparator) $title }}
21+
{{- $title = printf "%s %s %s" .Title (default "::" .Site.Params.titleSeparator) $title }}
2222
{{- end }}
2323
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
2424
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
@@ -187,7 +187,7 @@
187187
{{- if not $title }}
188188
{{- $title = .Data.Singular | humanize }}
189189
{{- end }}
190-
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) ($to.Title | humanize) }}
190+
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) $to.Title }}
191191
{{- end }}
192192
{{- if not $title }}
193193
{{- $title = $to.Site.Title }}

0 commit comments

Comments
 (0)