We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请问该主题有文章置顶功能么?如果有该如何开启?
The text was updated successfully, but these errors were encountered:
哈哈😄,其实这问题我也想问。我目前的解决方法就是手动修改时间。
Sorry, something went wrong.
目前没有,可以实现。
刚才想加一下置顶的功能,打算从数组中过滤需要置顶的元素来实现。可这样就会干扰到每一页显示的文章数量,比如:需要置顶的文章按时间排序本来是第 2 页,被过滤后拿到首页,第 2 页就会少一篇文章。
修改文章时间实现没有这个问题,如果不在意显示未来时间的话。 最好的实现还是应该放到 generator 阶段,应该从 hexo-generator-index 插件入手。
hexo-generator-index
Hexo 已实现文章置顶参数: hexojs/hexo-generator-index#51
No branches or pull requests
请问该主题有文章置顶功能么?如果有该如何开启?
The text was updated successfully, but these errors were encountered: