Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于置顶功能 #178

Closed
yo1995 opened this issue Aug 15, 2016 · 4 comments
Closed

关于置顶功能 #178

yo1995 opened this issue Aug 15, 2016 · 4 comments
Labels
feature:general Feature request that affects this theme in general.

Comments

@yo1995
Copy link

yo1995 commented Aug 15, 2016

github门外汉不懂git,希望作者可以考虑通过js增加一个文章置顶功能。如在front-matter中增加排序属性这种?

edit180210 很早之前就解决啦~不过暂时不用了。

@ppoffice ppoffice added the feature:general Feature request that affects this theme in general. label Aug 16, 2016
@ppoffice
Copy link
Owner

@yo1995
暂时的办法是在front-matter中设置文章的时间为一个很大的值,这样按时间排序的时候会保持文章在最新一个位置。
至于文章置顶的功能有时间我会考虑下。

@skyseraph
Copy link

使用: npm install hexo-generator-index-pin-top --save
然后博主再加一个置顶标识即可

@yo1995 yo1995 closed this as completed Feb 10, 2018
@stevenjoezhang
Copy link

Hexo 已实现文章置顶参数: hexojs/hexo-generator-index#51

@ACG-Q
Copy link

ACG-Q commented Jan 20, 2024

Hexo 已实现文章置顶参数: hexojs/hexo-generator-index#51

老哥,使用hexo-theme-icarus@5, 我在文章的front-matter中使用sticky: 1,然后博客就直接空白了😿

Repository owner locked as resolved and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature:general Feature request that affects this theme in general.
Projects
None yet
Development

No branches or pull requests

5 participants