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
我使用了 hexo-hide-posts 插件来隐藏文章,这个插件按照Generator的scope处理隐藏:
然而,archives.ejs中用的是全局变量site.posts,第二步根本影响不到。如果archives中能使用page.posts就好了,但是这需要额外处理pagination。
site.posts
page.posts
The text was updated successfully, but these errors were encountered:
我这问题提的请奇葩的,因为需求就很怪:cry:——我只想在index内隐藏文章。
我认为只有我一个人能遇到这问题,如果您认为这不适合修改我就不会继续打扰您了。
Sorry, something went wrong.
是在主页隐藏文章还是归档页隐藏?
主页隐藏,归档页不隐藏
👋 Hello, Your suggestion is great, we will add this feature in subsequent versions, thank you very much!
👋 您好, 您的建议很棒,我们将会在后续版本中加入这个功能,非常感谢!
No branches or pull requests
检查清单
问题描述
我使用了 hexo-hide-posts 插件来隐藏文章,这个插件按照Generator的scope处理隐藏:
https://github.com/prinsss/hexo-hide-posts/blob/9e536b033d2a16dc943ffeb27b2ba7ed47616a5f/lib/injectGenerators.js#L51
然而,archives.ejs中用的是全局变量
site.posts
,第二步根本影响不到。如果archives中能使用page.posts
就好了,但是这需要额外处理pagination。The text was updated successfully, but these errors were encountered: