yelog / hexo-theme-3-hexo

hexo主题:三段式设计、极简、方便 Hexo theme: three-stage design
https://yelog.org
MIT License
692 stars 206 forks source link

大纲不能显示4级以下标题 #98

Closed molu-ggg closed 11 months ago

molu-ggg commented 4 years ago

还有有些大纲不能显示完整是为什么

molu-ggg commented 4 years ago

都怪自己太水了

yelog commented 4 years ago

这个是通过配置决定的,在 3-hexo 主题下,修改文件 _config.yml,找到如下参数进行调整 现在的最大深度

##########自定义样式设置##############
# Table of contents | 文章目录
toc:
  max_depth: 3  # 1 - 6 (h1-h6) 目录最大级数
molu-ggg commented 4 years ago

谢谢,我顺便提醒后面使用该主题的人一下:不能跳级写标题,比如:从二级标题下直接写四级标题,这样大纲后面的标题会显示不出来。

yelog commented 11 months ago

Due to an extended period of time, this issue is being closed. If you have any further questions or concerns, please feel free to submit them again.