mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
taxonomy: fix number tags #570
This commit is contained in:
parent
05e33f051b
commit
e80f89b2b6
5 changed files with 10 additions and 10 deletions
|
@ -6,12 +6,12 @@
|
|||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- $title = i18n .Data.Plural }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Plural | humanize }}
|
||||
{{- $title = .Data.Plural }}
|
||||
{{- end }}
|
||||
{{- else if eq .Kind "term" }}
|
||||
{{- $title = i18n .Data.Singular }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Singular | humanize }}
|
||||
{{- $title = .Data.Singular }}
|
||||
{{- end }}
|
||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }}
|
||||
{{- end }}
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- $title = i18n .Data.Plural }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Plural | humanize }}
|
||||
{{- $title = .Data.Plural }}
|
||||
{{- end }}
|
||||
{{- else if eq .Kind "term" }}
|
||||
{{- $title = i18n .Data.Singular }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Singular | humanize }}
|
||||
{{- $title = .Data.Singular }}
|
||||
{{- end }}
|
||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }}
|
||||
{{- end }}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{{- $title := i18n .Data.Plural }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Plural | humanize }}
|
||||
{{- $title = .Data.Plural }}
|
||||
{{- end }}
|
||||
<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>
|
||||
{{- $lastCapital := "" }}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{{- $title := i18n .Data.Singular }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Singular | humanize }}
|
||||
{{- $title = .Data.Singular }}
|
||||
{{- end }}
|
||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Title }}
|
||||
<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
{{- else if eq .Kind "taxonomy" }}
|
||||
{{- $title = i18n .Data.Plural }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Plural | humanize }}
|
||||
{{- $title = .Data.Plural }}
|
||||
{{- end }}
|
||||
{{- else if eq .Kind "term" }}
|
||||
{{- $title = i18n .Data.Singular }}
|
||||
{{- if not $title }}
|
||||
{{- $title = .Data.Singular | humanize }}
|
||||
{{- $title = .Data.Singular }}
|
||||
{{- end }}
|
||||
{{- $title = printf "%s %s %s" .Title (default "::" .Site.Params.titleSeparator) $title }}
|
||||
{{- end }}
|
||||
|
@ -187,12 +187,12 @@
|
|||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- $title = i18n $to.Data.Plural }}
|
||||
{{- if not $title }}
|
||||
{{- $title = $to.Data.Plural | humanize }}
|
||||
{{- $title = $to.Data.Plural }}
|
||||
{{- end }}
|
||||
{{- else if eq .Kind "term" }}
|
||||
{{- $title = i18n $to.Data.Singular }}
|
||||
{{- if not $title }}
|
||||
{{- $title = $to.Data.Singular | humanize }}
|
||||
{{- $title = $to.Data.Singular }}
|
||||
{{- end }}
|
||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) $to.Title }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue