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

Keeping the root of the left menu with module imports #5

Open
giuliohome opened this issue May 6, 2023 · 0 comments
Open

Keeping the root of the left menu with module imports #5

giuliohome opened this issue May 6, 2023 · 0 comments

Comments

@giuliohome
Copy link

Excellent 💯👍 job, thank you so much for sharing this branch!

I just changed the line below, in my use case, where I have submenu items generated by imported hugo modules from external repositories (instead of building a monorepo)

{{ $navRoot := cond (and (ne .Params.toc_root true) (eq .Site.Home.Type "docs")) .Site.Home .FirstSection }}

to a trivial assignment of always Home (not sure why and when it really needs to be the first section though?)

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

1 participant