Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Commit

Permalink
feat: Display h4 in toc
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Feb 15, 2020
1 parent 30ca7ab commit 4bd6e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.toml
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions content/post/from-hexo-to-hugo.md
Expand Up @@ -67,8 +67,11 @@ hugo 还支持 [aliases](https://gohugo.io/content-management/urls/#aliases),
```toml
[markup.tableOfContents]
startLevel = 1
endLevel = 4
```

这样从 `<h1>``<h4>` 都会在目录中显示。

### HTML in links

例如:`[~~qwq~~](/post/from-hexo-to-hugo)`, `[![favicon](/favicon.ico)](/favicon.ico)`
Expand Down

0 comments on commit 4bd6e96

Please sign in to comment.