Suggestion: Be able to pin articles. #5047
-
I have integrated the blog in standalone and it is great. What would be interesting would be to have the possibility to have a metadata, like the This is a very common feature after all. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
That sounds like a good idea! We'll definitely consider it for future addition 😊a |
Beta Was this translation helpful? Give feedback.
-
Great advice, I also need such a feature. |
Beta Was this translation helpful? Give feedback.
-
As this has been asked a few times, I decided to squeeze this in between the other features that I'm currently working on. To pin a blog post, just use the ---
date: 2024-02-24
pin: true
---
# Post title Here's how it looks – a small pin icon is rendered at the end of the metadata of the post + a horizontal line at the bottom to signal that this post is outside of the normal flow of documents: |
Beta Was this translation helpful? Give feedback.
As this has been asked a few times, I decided to squeeze this in between the other features that I'm currently working on.
93a2ccc
adds support for pinning of blog posts! Pinned blog posts will be sorted before all other blog posts. If you pin multiple blog posts, they are sorted by descending date, like regular blog posts. Pinned posts will appear on the first page of the main blog page, as well as on the first page of archive and category pages if and only if they belong to those pages, but not on paginated pages.To pin a blog post, just use the
pin
property in the Markdown file of the blog post:Here's how it looks – a small pin icon is…