How to add parent menu in config.toml

How to add parent menu in config.toml?

I now add parent menu in front matter.

You can add menus in config.toml like this:

You can nest via the parent field:

What are you trying to accomplish?


This is my config.toml, all menu is main menu.

I need support Parent menu in config.toml

Yes, use “parent” and “identifier” to structure it. For instance:

    identifier = "mother"
    identifier = "child"
    parent = "mother"

Also, you need to be sure to render it correctly so that it will know the menu has children.

very good example at here: