Skip to content

Commit 796c386

Browse files
authored
refactor: add date factor to the recommended posts (cotes2020#1699)
1 parent 72d93b1 commit 796c386

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_includes/related-posts.html

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{% assign match_posts = match_posts | push: site.tags[tag] | uniq %}
2222
{% endfor %}
2323

24+
{% assign match_posts = match_posts | reverse %}
2425
{% assign last_index = match_posts.size | minus: 1 %}
2526
{% assign score_list = '' | split: '' %}
2627

0 commit comments

Comments
 (0)