Table of Contents
HugoModo features Hugo’s built-in support for generating a table of contents for a page.
This is off by default, and can be enabled or disabled for the entire site or individual pages.
Enable for your site
Add this to your site’s config.toml
file:
[Params]
include_toc = true
Enable for a single page
If you only want it enabled for a single page, add this to your page’s frontmatter:
include_toc = true
Disable for a single page
To disable the table of contents for certain pages, add this to your page’s frontmatter:
include_toc = false