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

请问该主题有文章置顶功能么?如果有该如何开启? #118

Open
weiyf opened this issue Nov 7, 2016 · 4 comments
Open

Comments

@weiyf
Copy link

weiyf commented Nov 7, 2016

请问该主题有文章置顶功能么?如果有该如何开启?

@yuangezhizao
Copy link

哈哈😄,其实这问题我也想问。我目前的解决方法就是手动修改时间。

@yscoder
Copy link
Owner

yscoder commented Nov 7, 2016

目前没有,可以实现。

@yscoder
Copy link
Owner

yscoder commented Nov 22, 2016

刚才想加一下置顶的功能,打算从数组中过滤需要置顶的元素来实现。可这样就会干扰到每一页显示的文章数量,比如:需要置顶的文章按时间排序本来是第 2 页,被过滤后拿到首页,第 2 页就会少一篇文章。

修改文章时间实现没有这个问题,如果不在意显示未来时间的话。
最好的实现还是应该放到 generator 阶段,应该从 hexo-generator-index 插件入手。

@stevenjoezhang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants