Hi,
I want to use content in several places on the site, like snippets. I need snippets to be included in the TOC.
I have tried using Headless Bundle (Page Bundles | Hugo) but unfortunately nothing is showing in the TOC. I would like to avoid rewriting the TOC. What am I missing here?
git clone --single-branch -b hugo-forum-topic-34027 https://github.com/jmooring/hugo-testing hugo-forum-topic-34027
cd hugo-forum-topic-34027
hugo server
I just found one problem that I have not figured out how to solve. The index page for snippets is still published, despite the site configuration setting. Working on it…
To prevent creation of the snippets list page, you must create snippets/_index.md. I have edited the post marked as a solution and updated the test repository.