diff --git a/config.toml b/config.toml index 52d249d..0665ba8 100644 --- a/config.toml +++ b/config.toml @@ -212,6 +212,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 [markup.tableOfContents] startLevel = 1 + endLevel = 4 # 将下面这段配置取消注释可以使 hugo 生成 .md 文件 # Uncomment these options to make hugo output .md files. diff --git a/content/post/from-hexo-to-hugo.md b/content/post/from-hexo-to-hugo.md index daa2124..e2152f2 100644 --- a/content/post/from-hexo-to-hugo.md +++ b/content/post/from-hexo-to-hugo.md @@ -67,8 +67,11 @@ hugo 还支持 [aliases](https://gohugo.io/content-management/urls/#aliases), ```toml [markup.tableOfContents] startLevel = 1 + endLevel = 4 ``` +这样从 `

` 到 `

` 都会在目录中显示。 + ### HTML in links 例如:`[~~qwq~~](/post/from-hexo-to-hugo)`, `[![favicon](/favicon.ico)](/favicon.ico)`。