如何将文章展示在除首页之外的菜单中?
Issue Checklist
- [ ] I am using NexT version 8.0 or later.
- [X] I have already read the Troubleshooting page of Hexo and Troubleshooting page of NexT.
- [X] I have already searched for current issues, which does not help me.
Other Information
例如:
我创建了一个 /articles/code-abilities/design-patterns/ 的自定义菜单,想将所有与设计模式有关的文章放在该路径下。
有办法做到吗?
Thanks for opening this issue, maintainers will get back to you as soon as possible!
补充一下,就像是 NexT Document 那样,可它的 Docs 里面只有1篇文章。
@hanzhang2566 为何不直接去看Doc的源代码?
@ljcbaby 我的确看了 Doc 的源代码,但和我想做的不相似。因为 Doc 里面的文章只有一篇,我想把所有与设计模式有关的文章都放在 /articles/code-abilities/design-patterns/ path 下。
你可以在 /articles/code-abilities/design-patterns/ 下创建多个 Markdown 文章
我也的确这样做了,可只展示出了 index.md 的内容
所以你的需求是什么?把这些文章的内容拼接在一起放在一个页面中吗?
不需要放在一个页面,而是可以向首页一样展示所有的文章。

目前还不支持,需要自定义一下。我看看有没有简单的方法,之后回复你。
好的好的,麻烦你
https://zhuanlan.zhihu.com/p/384471848 看看这个能不能解决你的问题
好的,谢谢,今晚回去试一下
@GeekBookx
目前还不支持,需要自定义一下。我看看有没有简单的方法,之后回复你。
有无好的解决方法?比较合理的方式是想办法让 hexo-generator-index 生成多于一个页面,例如在一个目录下放一个 index.md,然后把 layout 也改成 index
@hanzhang2566 您后来有解决这个问题吗?