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/summary.html | |
parent | 07b669c826f9250e6593e880f80c63bf70f5a746 (diff) |
fix: some title case bugs for section page and list page (#251)
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r-- | layouts/_default/summary.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index df0445c..419a869 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -33,8 +33,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> @@ -58,7 +59,8 @@ <i class="fas fa-tags fa-fw"></i> {{- range $index, $value := . -}} {{- if gt $index 0 }}, {{ end -}} - <a href="{{ `/tags/` | relLangURL }}{{ urlize $value }}">{{ $value }}</a> + {{- $tag := printf "/tags/%s" $value | $.Site.GetPage -}} + <a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a> {{- end -}} </div> {{- end -}} |