fix: some title case bugs for section page and list page (#251)
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
@@ -36,8 +36,9 @@
|
||||
{{- T "included" -}}
|
||||
{{- range $index, $value := . -}}
|
||||
{{- if gt $index 0 }} {{ 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>
|
||||
|
||||
Reference in New Issue
Block a user