-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
roadmap: possible upcoming major changes #715
Comments
while i understand hidden pages could make menu generation more complex, removing hidden pages seems to be a major step backwards in my use case and would potentially force me to switch to another theme. |
I am also not happy with this. This would also affect the use case at my company, so I doubt that I will implement it in that radical way. One other thought is to make it opt-in and explicitly mention the performance impact. I need to do further tests to decide on this. |
i'm kinda intrigued with the way folks over at mdbook are handling this: they use a separate file named "summary.md" to construct the menu. such a file could be easily provided manually or even constructed automatically in case one needs hidden pages. but that's not really the path of hugo ... |
Sounds intersting. Do you have a link to the docs? My quick google-fu was not successful. |
https://rust-lang.github.io/mdBook/guide/creating.html, https://github.com/rust-lang/mdBook hmmm, the "summary.md" seems also to be used as kind of toc and/or start page. but the structure and the linked documents is used to create the menu. |
Thanks @cagix. To me this sounds like a page is hidden if it is not contained in any summary. Probably the page is still accessible by direct linking. But this would mean the page is also not part of the book hierarchy which would be different from the themes hidden page feature. Or do i miss a part? |
indeed, it seems to work this way. but perhaps the idea could be adapted: hugo usually renders all pages contained in a certain folder and uses the structure and names or weights to populate the menu. now, to implement hidden pages, we could derive the menu in this case from something like a "summary.md", so only items defined in this file will show up in the menu - but hugo will render all pages as usual, which will "hide" all pages, which are not being referenced in the summary ... |
This is a list of ideas running thru my head to make the theme more compliant with standard Hugo features. This does not necessarily mean, that these changes finally will happen:
[params.relearn]
forhugo.toml
and probably frontmatter - Hugo is thinking into a similar direction of getting more structure into the params (there it's motivated by having clean interfaces for the underlying object structures and not hassle around with volatile object properties)output-partial
mechanism by reverting back to standard partial callsbaseof
templates?_cascade
feature to inherit settings in hierachical structures; this will affect the menu optionshidden
,alwaysopen
,ordersectionby
andcollapsibleMenu
The text was updated successfully, but these errors were encountered: