diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-22 20:22:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 20:22:29 +0300 |
commit | d90a2d9406aa883548b48bb6da8e828d2d8e4dad (patch) | |
tree | 509af2a696e88f109dddfd181c3ed39f3562562a /layouts/_default/section.html | |
parent | 07b669c826f9250e6593e880f80c63bf70f5a746 (diff) |
fix: some title case bugs for section page and list page (#251)
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r-- | layouts/_default/section.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 2d037bc..89ebcba 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,12 +1,12 @@ {{- define "title" }} - {{- T .Section | default .Section | printf (T "allSome") }} | {{ .Site.Title -}} + {{- .Title | default (T .Section) | default .Section | printf (T "allSome") }} | {{ .Site.Title -}} {{- end -}} {{- define "content" -}} <div class="page archive"> {{- /* Title */ -}} <h2 class="single-title animated pulse faster"> - {{- T .Section | default .Section | humanize | printf (T "allSome") -}} + {{- .Title | default (T .Section) | default .Section | printf (T "allSome") -}} </h2> {{- /* Paginate */ -}} |