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

如何将文章展示在除首页之外的菜单中? #644

Open
2 of 3 tasks
hanzhang2566 opened this issue Apr 28, 2023 · 13 comments
Open
2 of 3 tasks

如何将文章展示在除首页之外的菜单中? #644

hanzhang2566 opened this issue Apr 28, 2023 · 13 comments
Labels

Comments

@hanzhang2566
Copy link

hanzhang2566 commented Apr 28, 2023

Issue Checklist

Other Information

例如:
image
我创建了一个 /articles/code-abilities/design-patterns/ 的自定义菜单,想将所有与设计模式有关的文章放在该路径下。
有办法做到吗?

@welcome
Copy link

welcome bot commented Apr 28, 2023

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@hanzhang2566
Copy link
Author

补充一下,就像是 NexT Document 那样,可它的 Docs 里面只有1篇文章。

@ljcbaby
Copy link
Member

ljcbaby commented Apr 28, 2023

@hanzhang2566 为何不直接去看Doc的源代码?

@hanzhang2566
Copy link
Author

@ljcbaby 我的确看了 Doc 的源代码,但和我想做的不相似。因为 Doc 里面的文章只有一篇,我想把所有与设计模式有关的文章都放在 /articles/code-abilities/design-patterns/ path 下。

@stevenjoezhang
Copy link
Member

你可以在 /articles/code-abilities/design-patterns/ 下创建多个 Markdown 文章

@hanzhang2566
Copy link
Author

image
我也的确这样做了,可只展示出了 index.md 的内容

@stevenjoezhang
Copy link
Member

所以你的需求是什么?把这些文章的内容拼接在一起放在一个页面中吗?

@hanzhang2566
Copy link
Author

不需要放在一个页面,而是可以向首页一样展示所有的文章。
image

@stevenjoezhang
Copy link
Member

目前还不支持,需要自定义一下。我看看有没有简单的方法,之后回复你。

@hanzhang2566
Copy link
Author

好的好的,麻烦你

@GeekBookx
Copy link

https://zhuanlan.zhihu.com/p/384471848
看看这个能不能解决你的问题

@hanzhang2566
Copy link
Author

好的,谢谢,今晚回去试一下

@hanzhang2566
Copy link
Author

@GeekBookx

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

No branches or pull requests

4 participants