WIP: Lista tag ordinata per conteggio decrescente #246

Closed
paspo wants to merge 1 commits from paspo:taglist_bycount into main

View File

@ -2,9 +2,10 @@
{{- $hiddenTags := slice "Linuxday-Featured" -}} {{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3> <h3>Tags</h3>
<ul class="tags-sidebar"> <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 ) }} {{ 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 }}
{{ end }} {{ end }}
</ul> </ul>