In heyo we can use the sidebar to display a Table of Contents!
This post is a guide on how to display a Table of Contents in the sidebar.
It probably goes without saying, but the TOC is navigable.
showToc: trueto your front-matter
- That’s it
This post has the following front-matter:
--- author: Lucas David Vadilho title: Table of Contents date: 2023-08-01 showToc: true ---
config.toml we have the configuration for the levels, so it’s very easy to customize. By default we start at 1, and end at 6.
[markup] [markup.tableOfContents] startLevel = 1 endLevel = 6
If you get this deep you should probably restructure your document (jk).