From 33e1f2fc06eec1d635ded735d9ad3950d90ce4df Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 27 Mar 2020 20:49:27 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20archive=20=E5=BD=92=E6=A1=A3=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B9=B4=E4=BB=BD=E8=BE=83=E5=A4=A7=E6=8E=92=E5=89=8D?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helper.js b/scripts/helper.js index 05a9734..edca6ff 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -9,7 +9,7 @@ hexo.extend.helper.register('isInHomePaging', function (pagePath, route) { hexo.extend.helper.register('createNewArchivePosts', function (posts) { const postList = [], postYearList = []; posts.forEach(post => postYearList.push(post.date.year())); - Array.from(new Set(postYearList)).forEach(year => { + Array.from(new Set(postYearList)).reverse().forEach(year => { postList.push({ year: year, postList: []