From 796c38603762c394685224f0b922c9ae31d7152c Mon Sep 17 00:00:00 2001 From: Huanyu Shi Date: Sun, 28 Apr 2024 03:03:13 +0800 Subject: [PATCH] refactor: add date factor to the recommended posts (#1699) --- _includes/related-posts.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/related-posts.html b/_includes/related-posts.html index ae39da4..37a295b 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -21,6 +21,7 @@ {% assign match_posts = match_posts | push: site.tags[tag] | uniq %} {% endfor %} +{% assign match_posts = match_posts | reverse %} {% assign last_index = match_posts.size | minus: 1 %} {% assign score_list = '' | split: '' %}