Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-22 20:22:29 +0300
committerGitHub <noreply@github.com>2020-04-22 20:22:29 +0300
commitd90a2d9406aa883548b48bb6da8e828d2d8e4dad (patch)
tree509af2a696e88f109dddfd181c3ed39f3562562a /layouts/taxonomy/list.html
parent07b669c826f9250e6593e880f80c63bf70f5a746 (diff)
fix: some title case bugs for section page and list page (#251)
Diffstat (limited to 'layouts/taxonomy/list.html')
-rw-r--r--layouts/taxonomy/list.html8
1 files changed, 4 insertions, 4 deletions
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 @@
<h2 class="single-title animated pulse faster">
{{- $taxonomy := .Data.Singular -}}
{{- if eq $taxonomy "category" -}}
- <i class="far fa-folder-open fa-fw"></i>&nbsp;{{ humanize .Title }}
+ <i class="far fa-folder-open fa-fw"></i>&nbsp;{{ .Title }}
{{- else if eq $taxonomy "tag" -}}
- <i class="fas fa-tag fa-fw"></i>&nbsp;{{ humanize .Title }}
+ <i class="fas fa-tag fa-fw"></i>&nbsp;{{ .Title }}
{{- else -}}
- {{- printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title -}}
+ {{- printf "%s - %s" (T $taxonomy | default $taxonomy) .Title -}}
{{- end -}}
</h2>