mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
consistent in title and tag name plates by not modifing their name
This commit is contained in:
parent
5099b5b73c
commit
b2243438e3
3 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
||||||
{{- if not $title }}
|
{{- if not $title }}
|
||||||
{{- $title = .Data.Singular | humanize }}
|
{{- $title = .Data.Singular | humanize }}
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{- if not $title }}
|
{{- if not $title }}
|
||||||
{{- $title = .Data.Singular | humanize }}
|
{{- $title = .Data.Singular | humanize }}
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" $title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{{- if not $title }}
|
{{- if not $title }}
|
||||||
{{- $title = .Data.Singular | humanize }}
|
{{- $title = .Data.Singular | humanize }}
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
|
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
|
||||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
|
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
|
||||||
|
@ -187,7 +187,7 @@
|
||||||
{{- if not $title }}
|
{{- if not $title }}
|
||||||
{{- $title = .Data.Singular | humanize }}
|
{{- $title = .Data.Singular | humanize }}
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- if not $title }}
|
{{- if not $title }}
|
||||||
{{- $title = $to.Site.Title }}
|
{{- $title = $to.Site.Title }}
|
||||||
|
|
Loading…
Reference in a new issue