Menu Entry Methods

According to this documentation: MENU ENTRY METHODS we can include a params key to attach additional information to the entry.

My menus.en.toml

[[main]]
weight = 4
name = "Resources"
hasChildren = true
    [[main]]
    parent = "Resources"
    name = "Hugo"
    url = "https://gohugo.io/"
    [params]
        rel = "external"

and i got error:

ERROR Failed to reload config: failed to load config: failed to unmarshal config for path “/home/jordan/hugo/newsite/menus.en.toml”: “_stream.toml:1:1”: unmarshal failed: toml: table params already exists
Please help me

Try [main.params] instead. Params | Hugo

1 Like

thank you

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