Skip to content

Commit

Permalink
i18n: colon for taxonomy term title
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Apr 1, 2024
1 parent 9cd045f commit d9fcef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/utils/title.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{- else if eq $.Kind "term" -}}
{{- $taxonomyTermTitle := $htmlTitle | default $.Data.Term | default (delimit (last 1 (split (strings.TrimSuffix "/_index.md" $path) "/")) " ") -}}
{{- with $.Site.GetPage (printf "/%s" $.Data.Plural) -}}
{{- $htmlTitle = printf "%s: %s" (.Title | default (.Type | title)) $taxonomyTermTitle -}}
{{- $htmlTitle = printf "%s%s%s" (.Title | default (.Type | title)) (i18n "colon") $taxonomyTermTitle -}}
{{- end -}}
<!-- Section -->
{{- else if eq $.Kind "section" -}}
Expand Down

0 comments on commit d9fcef4

Please sign in to comment.