Use [extra] config from other files

Hello,

I’m using zola to create a site for a software project. It is run from the build tool. Now I’d like to add certain config values from the build tool, for example the current version. Is this possible? I don’t want to modify the hand-written config.toml and I also don’t want to create the file completely using the built tool, because it is some work without real value :slight_smile: . Is it maybe possible to define a separate file that is merged into the [extra] section of the config file? Or is there some other way to achieve this?

Thanks and kind regards
Eike

You could try generate a toml file and use load_data to bring it into your templates.

Ah, yes. Nice idea! Thank you, I’m going to try this.