How to make multiple menus using config.toml

Hi. I am trying to make multiple menus using config.toml.

I have a single menu that works, and looks like:

[menu]

[[menu.main]]
identifier = “information”
name = “About”
url = “/information/”
weight = 1

I’ve tried searching how to make a second menu using config.toml, but can’t find anything. I have seen examples for doing this with front matter, but would like to do this in config.toml if possible.

Thanks for reading!

Hey there,

just use another key:

[menus]

  [[menus.main]]
  name = "About"
  weight = 1.0
  url = "#"

  [[menus.other]]
  name = "products"
  weight = 2.0
  url = "#"
1 Like

That was easy. Thanks!!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.