Skip to content
Snippets Groups Projects
Verified Commit a45978e4 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

Fixed rendering of categories in tags page

parent 2cfca058
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
* When a post has an `image_header` parameter this image is set as an attachment * When a post has an `image_header` parameter this image is set as an attachment
to ActivityPub posts to ActivityPub posts
* Fixed some poor CSS rendering for quote-box. * 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 ## 2.1.0
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{{ $hereLink := .Permalink }} {{ $hereLink := .Permalink }}
{{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} {{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }}
{{ with $.Site.GetPage (printf "/tags/%s" $name) }} {{ 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}}
{{end}} {{end}}
</nav> </nav>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment