From 30437acaf53524ed97175d513b23d8042f3cf375 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Mon, 21 Aug 2023 20:33:58 +0800 Subject: feat: support to pin articles (#50) This feature can allow you to top articles via post front meta property `top`, the value is a number, the smaller the number is, the higher priority the article has. Example: ``` title: My Article top: ``` --- _includes/views/post-item.html | 1 + 1 file changed, 1 insertion(+) (limited to '_includes/views/post-item.html') diff --git a/_includes/views/post-item.html b/_includes/views/post-item.html index 0d6d129..0cad1f4 100644 --- a/_includes/views/post-item.html +++ b/_includes/views/post-item.html @@ -9,5 +9,6 @@ {{ post.title | escape }} + {%- include views/post-badges.html -%} -- cgit v1.2.3