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 | 486cbadb717b73fe1a5234448d0f1fb3b2ffa5ca (patch) | |
| tree | dbc4e7026ff7f46e17a6b0682de3a616593df336 | |
| parent | 96ac1f009849d81de5697cdfc75b045afb71d0f0 (diff) | |
fix: sort library sections correctly
Former-commit-id: ed2430f790b54375d9f8debba2e08c09ac7a07cf
| -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 }} |
