From c22fbd9860290d2c09d33215cf96d2681769ca6f Mon Sep 17 00:00:00 2001 From: rockbenben Date: Thu, 4 Apr 2024 19:36:21 +0800 Subject: [PATCH] fix(RSS): correct item sorting order --- docs/.vuepress/theme.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 0ff2a5b16..c596e9969 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -180,8 +180,11 @@ export default hopeTheme({ }, feed: { + atom: true, + json: true, rss: true, count: 10, + sorter: (a, b) => b.frontmatter.date - a.frontmatter.date, }, },