Skip to content

Using automatic sidebar menus with multiple top-level sections in /content/en/? #817

Answered by h-enk
johnnymatthews asked this question in Support
Discussion options

You must be logged in to vote

Not sure what's wrong with your setup. It should work out of the box. If you have repo available, I could be of better help.

Can't replicate it. What I did on a fresh install:

  • run npm run create -- --kind docs tutorials
  • add to ./config/_default/menus/menus.en.toml:
    [[main]]
      name = "Tutorials"
      url = "/tutorials/"
      weight = 15
  • in ./config/_default/params.toml set (needed for smaller screen sizes):
    [sections]
      sectionNav = ["docs", "tutorials"]

And, it "just" works: https://doks-817.netlify.app/tutorials/lorem/ipsum/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johnnymatthews
Comment options

Answer selected by johnnymatthews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants