Fixed rendering of categories in tags page

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-21 21:35:32 -04:00
parent 2cfca058d5
commit a45978e469
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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>