I’m basically trying to just get the path to a URL from either my config.toml or post frontmatter but am struggling to do it. The $.Param method looks like it does exactly what I want, but it thwarts me.
That doesn’t seem to be selecting the value only if set. It pulls bgimage from frontmatter, but if I delete bgimage from the frontmatter it doesn’t pull the value from config.toml. Instead it just outputs <nil>.
That doesn’t seem to work either, but I don’t see any errors in the server output as it builds. Maybe I’m misunderstanding something else and using it in the wrong place or something? If I do $.Param.bgimage I see the text output. If I do $.Param "bgimage" the page just seems to fail to render.