mirror of
https://github.com/ducky-labs/blog.git
synced 2026-02-04 15:21:00 +00:00
Init commit
This commit is contained in:
26
content/posts/table-of-content/index.md
Normal file
26
content/posts/table-of-content/index.md
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: How to enable table of content ?
|
||||
date: 2023-05-02
|
||||
description: Setup table of content in Hugo blog awesome theme
|
||||
---
|
||||
|
||||
## Table of content
|
||||
|
||||
This theme supports displaying table of content in blog posts.
|
||||
|
||||
To enable it, globally set `toc` to `true` in `config.toml`:
|
||||
|
||||
```toml
|
||||
[params]
|
||||
toc = true
|
||||
```
|
||||
|
||||
This will enable table of content for all posts. If you want to enable it for a specific post, add `toc = true` to the front matter of the post:
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: How to enable table of content
|
||||
date: 2023-05-02
|
||||
toc: true
|
||||
---
|
||||
```
|
||||
Reference in New Issue
Block a user