From a45978e4696f41b61d87f481f20a5aa9569badfb Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sat, 21 Oct 2023 21:35:32 -0400
Subject: [PATCH] Fixed rendering of categories in tags page

---
 CHANGELOG.md                             | 4 +++-
 layouts/partials/side_menu_taxonomy.html | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 31bff3723..0a60c6d9a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,9 @@
 * When a post has an `image_header` parameter this image is set as an attachment
     to ActivityPub posts
 * Fixed some poor CSS rendering for quote-box.
-* the `figure` shortcode will now make images clickable to see the full size.
+* The `figure` shortcode will now make images clickable to see the full size.
+* The tags page now renders categories as the the title instead of the slug
+    name.
 
 ## 2.1.0
 
diff --git a/layouts/partials/side_menu_taxonomy.html b/layouts/partials/side_menu_taxonomy.html
index eca6fb4ce..7a462bfdf 100644
--- a/layouts/partials/side_menu_taxonomy.html
+++ b/layouts/partials/side_menu_taxonomy.html
@@ -4,7 +4,7 @@
     {{ $hereLink := .Permalink }}
     {{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
      {{ with $.Site.GetPage (printf "/tags/%s" $name) }}
-       <a href="{{ .RelPermalink }}" class='menu-item tag{{ if (eq .Permalink $hereLink) }} selected{{ end }}' data-slug='{{$name}}' title="All pages with tag <i>{{$name}}</i>">{{$name}} ({{$cnt}})</a>
+       <a href="{{ .RelPermalink }}" class='menu-item tag{{ if (eq .Permalink $hereLink) }} selected{{ end }}' data-slug='{{ .LinkTitle }}' title="All pages with tag <i>{{.LinkTitle}}</i>">{{.LinkTitle}} ({{$cnt}})</a>
      {{end}}
    {{end}}
   </nav>
-- 
GitLab