Config file includes another config file?

Is there a way to have one file “include” another config file?

I have a bunch of sites that share a lot of the same include file content. This means either I duplicate things a lot (which is a problem), or I rely on using multiple config files at the command prompt, such as hugo --config=config.toml,config-solution.toml

Is there a way to “include” one config file from another?

This doesn’t seem to be part of the TOML spec. But maybe there is some other way to do it?

Thanks!

you can store the common config in a theme and use merge configurations

imho the merge config will apply to all included themes, so be vigilant with foreign themes.

to overcome, import your settings first and set proper defaults for eg for markdown safety

1 Like

Thank you!

I will read up on this.