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
commit486cbadb717b73fe1a5234448d0f1fb3b2ffa5ca (patch)
treedbc4e7026ff7f46e17a6b0682de3a616593df336
parent96ac1f009849d81de5697cdfc75b045afb71d0f0 (diff)
fix: sort library sections correctly
Former-commit-id: ed2430f790b54375d9f8debba2e08c09ac7a07cf
-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 }}