diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-21 15:08:42 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-21 15:08:42 +0800 |
| commit | ed2430f790b54375d9f8debba2e08c09ac7a07cf (patch) | |
| tree | 37872c6defe3ce27b19b26b0faaab6d2aee90889 | |
| parent | ecff1f5d06d4b152f5cf8c4dc808c7698fa7a0bd (diff) | |
fix: sort library sections correctly
| -rw-r--r-- | layouts/library/section.html | 2 |
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 }} |
