From fd1fd2bc3efa7b228e79b02adc298b7f16cbaa44 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 30 Mar 2020 10:20:17 +0800 Subject: [PATCH] =?UTF-8?q?Modified:=20archive=20=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=9C=88=E4=BB=BD=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E9=99=8D=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/helpers/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers/helper.js b/scripts/helpers/helper.js index edca6ff..5e23245 100644 --- a/scripts/helpers/helper.js +++ b/scripts/helpers/helper.js @@ -18,6 +18,6 @@ hexo.extend.helper.register('createNewArchivePosts', function (posts) { postList.forEach(item => { posts.forEach(post => item.year === post.date.year() && item.postList.push(post)) }); - postList.forEach(item => item.postList.sort((a, b) => a.date.unix() - b.date.unix())); + postList.forEach(item => item.postList.sort((a, b) => b.date.unix() - a.date.unix())); return postList; }); \ No newline at end of file