From ed2430f790b54375d9f8debba2e08c09ac7a07cf Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Wed, 21 Jan 2026 15:08:42 +0800 Subject: fix: sort library sections correctly --- layouts/library/section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/library/section.html') diff --git a/layouts/library/section.html b/layouts/library/section.html index fa3b9e95..cb7e1734 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -3,7 +3,7 @@ {{ $isLibraryHome := eq .RelPermalink "/library/" }} {{ $books := .RegularPages }} {{ if $isLibraryHome }} - {{ $sections := (sort .Sections) | collections.Reverse }} + {{ $sections := (sort .Sections "value" "asc") }} {{ range $sections }} {{ $books = $books | append .RegularPages }} {{ end }} -- cgit v1.2.3