Is it possible to sort taxonomy terms based on a set term weight?

Hello again @johnson

The solution to your issue lies in this post by @pointyfar over here: List custom taxonomy terms in a specific order (not alphabetical)

Simply adapt the linked code in /layouts/index.html of your sample repo like so:

{{ define "main"}}
{{ $taxo := "categories" }}
<ul>
  {{ with ($.Site.GetPage (printf "/%s" $taxo)) }}
    {{ range .Pages.ByWeight }}
      <li><a href="{{ .RelPermalink }}">{{ .File.Dir | title }}</a></li>
    {{ end }}
  {{ end }}
</ul>
{{ end }}

Once you execute hugo server you will be greeted with the following list:

   • Categories/Great/
   • Categories/Large/
   • Categories/Extralarge/
1 Like