fix: some title case bugs for section page and list page (#251)

This commit is contained in:
Dillon
2020-04-23 01:22:29 +08:00
committed by GitHub
parent 07b669c826
commit d90a2d9406
37 changed files with 67 additions and 65 deletions

View File

@@ -1,13 +1,13 @@
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>
{{- T .Section | default .Section | printf (T "allSome") }} | {{ .Site.Title -}}
{{- .Title | default (T .Section) | default .Section | printf (T "allSome") }} | {{ .Site.Title -}}
</title>
<link>
{{- .Permalink -}}
</link>
<description>
{{- T .Section | default .Section | printf (T "allSome") }} | {{ .Site.Title -}}
{{- .Title | default (T .Section) | default .Section | printf (T "allSome") }} | {{ .Site.Title -}}
</description>
<generator>Hugo -- gohugo.io</generator>
{{- with .Site.LanguageCode -}}

View File

@@ -36,8 +36,9 @@
{{- T "included" -}}
{{- range $index, $value := . -}}
{{- if gt $index 0 }}&nbsp;{{ end -}}
<a href="{{ `/categories/` | relLangURL }}{{ urlize $value }}">
<i class="far fa-folder fa-fw"></i>{{ $value | humanize }}
{{- $category := printf "/categories/%s" $value | $.Site.GetPage -}}
<a href="{{ $category.RelPermalink }}">
<i class="far fa-folder fa-fw"></i>{{ $category.Title }}
</a>
{{- end -}}
</span>