Menu in config for Hugo is not working

On this Hugo project (thirsty-swirles-6f98fa.netlify.app) I have made a setup for menu similar to the one below:

[[menu.main]]
name = "page 0"
url = "/"
identifier = "pg0"
weight = 1

[[menu.main]]
name = "page 1"
url = "/"
identifier = "pg1"
weight = 2

[[menu.main]]
name = "page 2"
url = "/.."
identifier = "pg2"
parent = "pg1"
weight = 1

Unfortunately every menu that has a sub-menu is visible on my local but not after netlify build. So in the end I have only one item visible in menu.

Do you know why?

1 Like

hey solopx, do you have a live site where we can look at this, potentially?

I’m not a hugo expert, but if the menu lives in a different file, and things load correctly locally, i am wondering whether this is case issue?