Lista tag ordinata per conteggio decrescente
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m13s

This commit is contained in:
Paolo Asperti 2024-09-20 21:05:57 +02:00
parent d929c605a8
commit 2d2d5d21ad
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -2,9 +2,10 @@
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
{{ $tags := where .Site.Taxonomies.tags ".Page.Section" .Section }}
{{ range $tags.ByCount }}
{{ if not (in $hiddenTags .Page.LinkTitle ) }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }}</a></li>
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }} ({{ .Count }})</a></li>
{{ end }}
{{ end }}
</ul>