@[toc](文章目录),在文章里不显示目录
Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
- [ x ] I am using the latest version of NexT.
- [ x ] I have read the relevant documents of Hexo and NexT.
- [ x ] I have reviewed the latest Roadmap on GitHub and searched for current issues, which does not help me.
Expected behavior
1.在文章开头显示目录,并且点击目录可以跳转到指定的标题:
2.如果第1个问题无法实现,那是否可以调整sidebar的文章目录的位置?默认的sidebar的文章目录的位置:
Actual behavior
- Links to demo site with this issue: N/A
- Links to repository or source code of the blog: N/A
1.同样的代码复制到next,但是文章开头不显示目录:
2.如果第1个问题无法实现,那是否可以调整sidebar的文章目录的位置?目标位置:
文章的开头部分
Steps to reproduce the behavior
- N/A
- N/A
- N/A
Environment Information
Node.js and NPM Information
node -v:
v12.16.3
npm -v:
6.14.4
Package dependencies Information
npm ls --depth 0:
`-- (empty)
Hexo Configuration
NexT Configuration
Other Information
Thanks for opening this issue, maintainers will get back to you as soon as possible!
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.
@[toc](目录) 不属于markdown的语法
try this https://github.com/bubkoo/hexo-toc
GitHub
📖 Insert a markdown TOC before posts be rendered. Contribute to bubkoo/hexo-toc development by creating an account on GitHub.
在需要添加目录的地方使用
<!-- toc -->