How do I exclude a specific section from the menu?

I’d like to exclude a specific section from the menu, but I want it to continue to be accessible. Is there a way to do this? My theme “ananke” seems to use auto-generated section menus.

Thanks!

When ranging through your menus, add an if statement something like “if menu name does not equal x, then display”. Where x is the menu item you don’t want to display

1 Like

Thanks!

I ended up solving instead by disabling “lazy menus” and manually specifying my menu in config.toml - https://gohugo.io/content-management/menus/

1 Like