Hello, i would like to show a list of most used tags on my blog, right now im using this and it only shows tags by alphabetical order
</div>
{{- $.Scratch.Set "myLimit" 0 }}
{{- $tags := .Site.Taxonomies.tags }}
<div class="widget-taglist widget">
<div class="widget__content">
{{- range $name, $taxonomy := $tags }}
{{- $.Scratch.Set "myLimit" (add ($.Scratch.Get "myLimit") 1) }}
{{- if le ($.Scratch.Get "myLimit") 25 }}
{{- with $.Site.GetPage (printf "/tags/%s" $name) }}
<a class="widget-taglist__link widget__link clouds" href="{{ .RelPermalink }}" title="{{ .Title }}">
{{- .Title -}}{{- if .Site.Params.widgets.tags_counter }} ({{ $taxonomy.Count }}){{ end -}}
</a>
{{- end }}