diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-16 16:04:10 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-16 16:04:10 +0800 |
| commit | 24de372aa1263b340591d7e42b9f0ca3a56c522d (patch) | |
| tree | b64ce14ae4f445bc8c178efaba7a16514dd08732 | |
| parent | 3a60aeb3bfc911fc380b4e69c21b8de7c50bcd32 (diff) | |
fix: unexpected order in library section
Former-commit-id: edf1e62033a4fb5d2913050c042f87be1a0c563e
| -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 2c21d89a..fa3b9e95 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -3,7 +3,7 @@ {{ $isLibraryHome := eq .RelPermalink "/library/" }} {{ $books := .RegularPages }} {{ if $isLibraryHome }} - {{ $sections := .Sections }} + {{ $sections := (sort .Sections) | collections.Reverse }} {{ range $sections }} {{ $books = $books | append .RegularPages }} {{ end }} |
