[solved] Are .Site.Params properties as a map not allowed? (config.toml)

Hey there,

I currently struggling creating a map in toml within .Site.Params and dont get any results.

config.toml

[params]
    themeColor = "#ff0000"
    [favicon]
        href = "/favicon.png"
        type = "image/png"
        sizes = "144x144"

while .Site.Params.themeColor works properly, I don’t get anything from .Site.Params.favicon.

I tried to find some restrictions from the documentation (https://gohugo.io/variables/site/#the-site-params-variable) but could not find any.

Not sure if its a missing feature or if I’m doing something wrong :slight_smile:

It is allowed, but you need to study the TOML format spec.

Oops, got it - thanks :slight_smile:

[params]
   themeColor = "#ff0000"
   [params.favicon]
       href = "/favicon.png"
       type = "image/png"
       sizes = "144x144"
1 Like