Open dietervansteenwegen opened 7 months ago
Hi @dietervansteenwegen As far as I know, I don't think there's any of the two options. However,
assets/styles/navigators/sidebar.scss
.layouts/partials/navigators/sidebar.html
or assets/scripts/sections/sidebar.js
.@BernatBC allright, thanks.
Chronological sorting seemed something so basic and obvious, I kind of expected it to be part of Hugo itself.
Actually... Just realized I didn't check if it isn't possible by default in Hugo :(. Checked the Toha docs and source, but forgot Hugo base functionality. Will check tomorrow.
The sidebar items are manually sorted so that you can organize posts into category and sub-category. However, the post cards are chronologically sorted. If you need sidebar to be more like other blog where it will be categorized by month/year, you will have to create a new sidebar layout. Hugo provides the basic functionalities to group/sort posts by date. Ref: https://gohugo.io/variables/pages/
I have the sidebar/TOC for the posts set up as I want it (with categories), but I'd like to change two more things:
menu: sidebar: weight: 10
value and setting it incrementing by date, but maybe there is setting somewhere?