Description#
By default the theme manages the sidebar content sorting according to the standard Hugo content sorting .
Sorting behavior#
In order to define a specific behavior for the sidebar content sorting, siteContentOrder
configuration key must be used in the specific parameters of the site.
The possible values of this parameter is linked to the different Hugo sorting methods, without spaces and in lowercase.
Examples#
...
[params]
# Sidebar content order (https://gohugo.io/templates/lists/#order-content)
siteContentOrder = "weight"
siteContentOrder = "date"
siteContentOrder = "publishdate"
siteContentOrder = "expirationdate"
siteContentOrder = "lastmodifieddate"
siteContentOrder = "length"
siteContentOrder = "title"
siteContentOrder = "linktitle"
...