From 4bd6e9639a38f5b36dc239e5945cfb089375563d Mon Sep 17 00:00:00 2001 From: ouuan Date: Sat, 15 Feb 2020 20:45:27 +0800 Subject: [PATCH] feat: Display h4 in toc --- config.toml | 1 + content/post/from-hexo-to-hugo.md | 3 +++ 2 files changed, 4 insertions(+) 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)`。