add sort to menu

This commit is contained in:
Cittadhammo 2023-02-11 09:28:26 +00:00
parent 4a87a6c0de
commit f262ff881c

View File

@ -15,7 +15,7 @@
{{ define "book-section-children" }}{{/* (dict "Section" .Section "CurrentPage" .CurrentPage) */}}
<ol>
{{ range (where .Section.Pages "Params.bookhidden" "ne" true) }}
{{ range sort (where .Section.Pages "Params.bookhidden" "ne" true) }}
{{ if .IsSection }}
<details>
<summary>