-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
能加个markdown toc的导航菜单实现吗 #48
Comments
技术上能,但我不能。不到 150 行代码的主题(天下可能仅此一家),意思是用户要么是极简主义者,要么是自己动手型。请二选一吧。 |
好的 感谢回复 我有一篇6W字的MD 滚动条很长 实在无奈 |
这个功能我在 hugo-prose 主题中实现过:https://github.com/yihui/hugo-prose 但我主要是用 JavaScript 实现的,你要是不怕晕,可以从那边抄代码。预览:https://prose.yihui.org/about/ |
节制是一件很难做到的事情,对 xmin 的现状比较满意,不满意的 DIY 就好了,不要破坏上游的简洁性。 |
这里有个方案,原来 hugo 已经把 TOC 都解析好了。没几行代码 |
理论上就是一行代码,但 Hugo 自己的 |
No description provided.
The text was updated successfully, but these errors were encountered: