From df3aaa7ea310501627e0a43f50dc8e80aa075164 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 26 Dec 2023 14:06:38 +0800 Subject: [PATCH] :zap: Perf: modify the sorting method in the collection list like the home page --- layouts/partials/single/collection-list.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html index 906f4b35..232f02ed 100644 --- a/layouts/partials/single/collection-list.html +++ b/layouts/partials/single/collection-list.html @@ -4,7 +4,7 @@ {{- if .Params.collections | and $params.collectionList -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} - {{- $pages := .Pages.ByDate -}} + {{- $pages := .Pages -}} {{- $open := eq (index $collectionTerms 0) . -}} {{- $currentKey := 0 -}} @@ -22,7 +22,7 @@