From d90a2d9406aa883548b48bb6da8e828d2d8e4dad Mon Sep 17 00:00:00 2001 From: Dillon Date: Thu, 23 Apr 2020 01:22:29 +0800 Subject: fix: some title case bugs for section page and list page (#251) --- layouts/taxonomy/list.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/taxonomy/list.html') diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index cd60dba..d770be0 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -1,5 +1,5 @@ {{- define "title" -}} - {{- .Title }} | {{ T .Data.Singular | default (humanize .Data.Singular) }} | {{ .Site.Title -}} + {{- .Title }} | {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}} {{- end -}} {{- define "content" -}} @@ -8,11 +8,11 @@

{{- $taxonomy := .Data.Singular -}} {{- if eq $taxonomy "category" -}} -  {{ humanize .Title }} +  {{ .Title }} {{- else if eq $taxonomy "tag" -}} -  {{ humanize .Title }} +  {{ .Title }} {{- else -}} - {{- printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title -}} + {{- printf "%s - %s" (T $taxonomy | default $taxonomy) .Title -}} {{- end -}}

-- cgit v1.2.3