1.4 Sidebar Sorting #1210
Replies: 3 comments 3 replies
-
Thanks! Just change the default sort order — https://github.com/gethyas/doks-core/blob/main/layouts/partials/sidebar/render-section-menu.html#L92 — to: {{- range .ByTitle }}
{{- template "walk" (dict "node" . "currentPage" $currentPage) }}
{{- end }} That should work for what you want — see also Sort content |
Beta Was this translation helpful? Give feedback.
-
Aha! Not exactly what I was after (probably didn't explain it well) but managed to get it, the pointer was instrumental in finding where to do it exactly. Example:
|
Beta Was this translation helpful? Give feedback.
-
Not messing with brand new topic so I ask here. I want to edit render-section-menu.html as well cause I have done some editing in |
Beta Was this translation helpful? Give feedback.
-
Hey all, love the new auto-menu it works great mostly. One thing I'm looking for is figuring out how to group by weight then sort by title within each group. Has anyone accomplished this before? Currently it appears to be by weight then by date.
My experiments so far have been with section-menu.html and render-section-menu.html but can't quite get it right.
Beta Was this translation helpful? Give feedback.
All reactions