I’m new to Hugo, but have been playing around with it for the last couple weeks. I’m using the docDock theme and I’m trying to figure out how I can generate navigation from anchors in a markdown page instead of only being able to create navigation from separate individual markdown files. Since global search is not available across all the content it would be advantageous to allow for larger markdown files that have navigation created by anchors.
Questions:
- Can you even create navigation from anchors in a markdown file in Hugo?
- Can you enabled/disable the creation of navigation in the Frontmatter for anchors (i.e. you may not want to create navigation from pages for everything?
Below is an example of a simple navigation structure where I’d like to have the _index.md file in the “Create Page” folder and then have anchors/sections within the _index.md file for sections on “Home Page”, “About images” and “Present a Slide” with the nav created form these Anchors.
Thank you for your help!!!