jekyll-theme-yat
jekyll-theme-yat copied to clipboard
Does yat support sticky posts?
I want some of my articles to always show on the top. It could be done by changing the date of posts, but it makes no sense.
You can do this by easily modifying the index page (i.e. index.html) simply to add your custom HTML content, such as the recommended articles. But this feature is interesting, I will take a consideration.
You can do this by easily modifying the index page (i.e. index.html) simply to add your custom HTML content, such as the recommended articles. But this feature is interesting, I will take a consideration.
Yeah, it's great. Maybe adding a recommended articles area is a good idea! I think it is better than sticky posts. If it could be done by simply add an entry in the front matter, see recommend: true, it would be a nice feature.
Hi @xietx1995 ,
Recently, I just added the support to pin an article, thanks for your patience for this feature. You can pin an article by using top: <number> in your post front meta as below:
```
title: Your Article Title
top: 1
```
This is an example to show how to pin an article at top.
The smaller the number is, the higher the priority is.
Thanks & Regards