summaryrefslogtreecommitdiff
path: root/_includes/views/post-item.html
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-21 20:33:58 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-23 15:12:07 +0800
commit30437acaf53524ed97175d513b23d8042f3cf375 (patch)
treea22d4cc5407cfaf6c95bb19c99974f7d4ffb0ca2 /_includes/views/post-item.html
parentf3d2a6fc15e2889c563459ef86137df275714d2c (diff)
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: <number> ```
Diffstat (limited to '_includes/views/post-item.html')
-rw-r--r--_includes/views/post-item.html1
1 files changed, 1 insertions, 0 deletions
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 @@
<span>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
+ {%- include views/post-badges.html -%}
</a>
</span>