summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-21 15:08:42 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-21 15:08:42 +0800
commited2430f790b54375d9f8debba2e08c09ac7a07cf (patch)
tree37872c6defe3ce27b19b26b0faaab6d2aee90889
parentecff1f5d06d4b152f5cf8c4dc808c7698fa7a0bd (diff)
fix: sort library sections correctly
-rw-r--r--layouts/library/section.html2
1 files changed, 1 insertions, 1 deletions
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 }}