Hugo maps. Single square brackets vs Double square brackets

I thought I understood about maps but I need some more reading.

What is the difference between the two code snippets below:

[params]
  var = "var"
  [params.one]
    var1 = "var1"
  [params.two]
    var2 = "var2"

Against

    [params]
      var = "var"
      [[params.one]]
        var1 = "var1"
     [[params.two]]
        var2 = "var2"

What is the correct way and how do I access the vars in template? What is the double square bracket?

I try to understand Menus and Multilingual.

I have to say I really like hugo.

That’s TOML syntax. See https://github.com/toml-lang/toml.

1 Like

Yes now I get it.

So it is an array of maps.

Thank you very much.

I have a question. Were is this in the official documentation? I hope it is not too late.

It is in the documentation for TOML, which is linked to above.

Please do not ressurect years-old topics.