Please help reverse month taxonomy

Guys, please can you help me.
I want to reverse the order of my blog’s side bar.

.Reverse doesn’t work: {{ range $name, $taxonomy := .Site.Taxonomies.month.Reverse }}
could you suggest alternative. <3

    {{ range $name, $taxonomy := .Site.Taxonomies.month }} {{- $cnt := .Count -}}
    {{- with $.Site.GetPage (printf "%s" $name) -}}
    <li>
        <a style="color: #a6a6a6; line-height: 26px;" href="{{ .RelPermalink }}"
           title="All posts from {{ .Title }}">{{ .Title }}</a>
        <div style="border-bottom: 1px solid #e6e6e6; width: 50%;"></div>
    </li>
    {{ end }}
    {{- end -}}
</ul>
{{ range $term, $weightedPages := site.Taxonomies.month.Alphabetical.Reverse }}
  <a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a>
{{ end }}

https://gohugo.io/templates/taxonomy-templates/#taxonomy-methods

1 Like

Thank you so much for your help!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.