diff options
author | tosi29 <tosi16@gmail.com> | 2019-05-26 05:46:26 +0300 |
---|---|---|
committer | tosi29 <tosi16@gmail.com> | 2019-05-26 05:46:26 +0300 |
commit | b949ba0e3f7d458496e621124247fd26712334b6 (patch) | |
tree | 48f215f7107624372c8ce5aebe940b32bc5ea4ca | |
parent | 03421932773a3cad29fc64461b35aa74a3fc2605 (diff) |
Fix to keep original case of category/tag/archive
-rw-r--r-- | layouts/partials/sidebar.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index f53c42a..783409a 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -5,7 +5,7 @@ <ul class="widget__list"> {{- range $name, $items := .Site.Taxonomies.categories -}} <li class="cat-item cat-item-2"> - <a href="{{- "categories/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ $name | title }} ({{ $items.Count }})</a> + <a href="{{- "categories/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ .Page.Title }} ({{ $items.Count }})</a> </li> {{- end }} </ul> @@ -15,7 +15,7 @@ <h2>{{ T "tags_title" }}</h2> <div class="tagcloud"> {{- range $name, $items := .Site.Taxonomies.tags -}} - <a class="tag-cloud-link" href="{{- "tags/" | relLangURL -}}{{- $name | urlize | lower -}}" title="{{ $name }}" style="font-size: 12pt;">{{ $name }} </a> + <a class="tag-cloud-link" href="{{- "tags/" | relLangURL -}}{{- $name | urlize | lower -}}" title="{{ $name }}" style="font-size: 12pt;">{{ .Page.Title }} </a> {{- end }} </div> </aside> @@ -36,7 +36,7 @@ <h2>{{ T "archives_title" }}</h2> <ul> {{- range $name, $items := .Site.Taxonomies.archives -}} - <li><a href="{{- "archives/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ $name | title }} ({{ $items.Count }})</a></li> + <li><a href="{{- "archives/" | relLangURL -}}{{- $name | urlize | lower -}}">{{ .Page.Title }} ({{ $items.Count }})</a></li> {{- end }} </ul> </aside> |