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

@@ -48,7 +48,8 @@
<i class="fas fa-tags fa-fw"></i>&nbsp;
{{- range $index, $value := . -}}
{{- if gt $index 0 }},&nbsp;{{ end -}}
<a href="{{ `/tags/` | relLangURL }}{{ urlize $value }}">{{ $value }}</a>
{{- $tag := printf "/tags/%s" $value | $.Site.GetPage -}}
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
{{- end -}}
{{- end -}}
</section>