I am working on a theme component that provides a certain type of output format. The problem is, it seems that themes and components are overwriting their config.toml files from the left, so that a line from “my” config is overwritten in the websites config.toml.
my config.toml:
[outputs]
home = ["REDIR", "HEADERS" ]
my sites config:
[outputs]
home = [ "HTML", "RSS" ]
resulting config:
[outputs]
home = [ "HTML", "RSS"]
Is there any way to add my output formats via config.toml in my theme components or must it be via manual adding it to the users config.toml?
I would think that it might be a nice feature if a theme component’s config.toml would be merged into the final config.toml, as opposed to being overwritten. For Example for my two files above resulting in:
[outputs]
home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
# or maybe merging from left
home = ["REDIR", "HEADERS", "HTML", "RSS" ]
I am open to being taught other options or ways. The end goal is to make it like a drop-in, without configuration. Or better the least configuration required. Add it, forget about it.
As for adding this as feature: probably not all config.toml options should be merged, but I could at least envision it in the outputs, params, mediaTypes department…