hugo-theme-techdoc icon indicating copy to clipboard operation
hugo-theme-techdoc copied to clipboard

Hidden Menu Items Return 404

Open simondmorias opened this issue 3 years ago • 1 comments

I have a site with two directories in the content directory:

| content
--| schemas
   -- | page1.md
--| subschemas
   -- | subpage.md

In my config I have:

menu_exclusion = [
        "subschemas"]

This is because I do not want subschemas appearing in the menu (the content is 200+ pages) - but there are links from pages on the schemas pages to subschemas. When I hide them using the above the exclusions the links all return 404's.

Is there anyway to hide an item from a menu but still be able to reference it by URL?

Sorry I'm new to Hugo - I've looked around I can't find anything obvious, from what I read this behaviour is down to how the theme has been implemented.

simondmorias avatar Mar 16 '21 11:03 simondmorias

Hiding subschemas from the menu does not affect the generation of subschemas pages. So probably the link will never return 404.

thingsym avatar Jul 05 '22 09:07 thingsym