Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden Menu Items Return 404 #35

Open
simondmorias opened this issue Mar 16, 2021 · 1 comment
Open

Hidden Menu Items Return 404 #35

simondmorias opened this issue Mar 16, 2021 · 1 comment

Comments

@simondmorias
Copy link

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.

@thingsym
Copy link
Owner

thingsym commented Jul 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants