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 | edf1e62033a4fb5d2913050c042f87be1a0c563e (patch) | |
| tree | 6c044da347c93d83f49eebd0058a2973582cbd6f /layouts | |
| parent | 8d8d9d1985452e0bfc7478e98d3f63edb1f7bb60 (diff) | |
fix: unexpected order in library section
Diffstat (limited to 'layouts')
| -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 }} |
