From 13cce7f645e40f630aac194ee66d8fe9d7ba6e09 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sun, 12 Feb 2023 16:46:11 -0800 Subject: [PATCH] fix: recent notes partial sorting --- layouts/partials/recent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html index e7afddd6..aadf97db 100644 --- a/layouts/partials/recent.html +++ b/layouts/partials/recent.html @@ -6,7 +6,7 @@ is a collection of pages. https://gohugo.io/content-management/related/ --> - {{$notes := .Site.RegularPages}} + {{$notes := .Site.RegularPages.ByLastmod.Reverse}} {{partial "page-list.html" (first 3 $notes)}}