mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
Fixed rendering of categories in tags page
This commit is contained in:
parent
2cfca058d5
commit
a45978e469
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue