Hugo maps. Single square brackets vs Double square brackets


#1

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.


#2

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


#3

Yes now I get it.

So it is an array of maps.

Thank you very much.