jekyll-theme-yat icon indicating copy to clipboard operation
jekyll-theme-yat copied to clipboard

Does yat support sticky posts?

Open xtttttttttx opened this issue 4 years ago • 3 comments

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.

xtttttttttx avatar Jul 21 '21 04:07 xtttttttttx

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.

jeffreytse avatar Jul 21 '21 04:07 jeffreytse

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.

xtttttttttx avatar Jul 21 '21 04:07 xtttttttttx

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

jeffreytse avatar Aug 23 '23 07:08 jeffreytse