From 24de372aa1263b340591d7e42b9f0ca3a56c522d Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Fri, 16 Jan 2026 16:04:10 +0800 Subject: fix: unexpected order in library section Former-commit-id: edf1e62033a4fb5d2913050c042f87be1a0c563e --- layouts/library/section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} -- cgit v1.2.3