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
Make it possible to collapse navigation bar items which have child items #243
Comments
That's already possible. You can control this for each individual section using |
That's awesome! how can I add geekdocCollapseSection to just one section, not from the global config.toml? |
As you would do with every page config 🙂 add it to the front matter of the section. See https://raw.githubusercontent.com/thegeeklab/hugo-geekdoc/main/exampleSite/content/collapse/level-2/_index.md |
Wow, didn't know it's possible to do configs per section. Thanks! Is there any way I could donate a small symbolic sum (like 5 euros) to you to buy you a coffee for all the great work that you do with this theme? |
The collapsing works like magic per level, however if I make some sections collapsible, the leaf levels (lowest levels) start as collapsed by default. Is there any way to make them collapsible but have them be expanded by default? |
Important things have been clarified. Thank you very much for your help! |
Right now, I don't have a way to make donations. But your kind words are very welcome :) If you want to support our work, please keep reporting issues, star this repo and tell others about it. That helps a lot. |
Right now, that's not possible. I would need to take a look if we could support it somehow. |
Not abig deal, it's quite OK as it is. Thank you! |
Will do! Geekdoc is by far the nicest Hugo theme I've found for my personal needs. |
It would be nice to have to possibility to collapse/expand the navigation bar items which have child items under them. This could be controlled by a config option.
Consider the following example:
The text was updated successfully, but these errors were encountered: