YenYuHsuan / hexo-theme-beantech

:sparkles: Ported theme of Hux Blog by Kaijun, Modified by YuHsuan :sparkles:
http://beantech.org
Apache License 2.0
441 stars 105 forks source link

home主页的文章支持置顶功能 #15

Open huweihuang opened 6 years ago

huweihuang commented 6 years ago

希望可以在page里面加个参数来设置是否置顶,默认为false不置顶。而置顶的文章根据置顶编辑的顺序显示在home主页上。 因为目前的文章是根据时间排序,即home主页显示的是最新的文章,但有时候想把主页的文章设置为推荐文章(置顶文章)而不是最新post的文章。谢谢!具体可参考我的博客home主页:http://www.huweihuang.com/

fawks96 commented 6 years ago

@huweihuang 你其实可以手动更改想推荐文章的发表时间为最新时间,日志就会自动置顶了。

huweihuang commented 6 years ago

@fawks96 我目前的首页文章就是更改了发表的时间,最新的文章如果不想展示在首页就把时间改的更早,这样感觉不是很好,所以还是希望可以有这个功能。

YenYuHsuan commented 6 years ago

@huweihuang Good advise! Sorry for the late reply, I'll try to add this function after I finish my recent project. But if you can finish it before then, that will be nice as well :smile:. Welcome to send the pull request, Peace!

nqmysb commented 5 years ago

文章置顶置顶功能我添加了 可以进入我的主页看看效果 https://liaocan.top 只要在page里面设置top属性即可, top值越大,显示的越上面