Which config takes precedence?

I think the answer is in the docs but I’m having trouble finding it, and my Zola site’s behavior isn’t helping. I’m trying to define the code highlight scheme name used.

I have a config toml file at the top of the directory that was originally created by “zola init” and also a config toml file in themes/docascode/.

Which one overrides the other?

Does it matter if one has the variable and the other does not?

If one has “” as the the value for the variable and the other has “solarized-dark” for the value, which is used?

By default zola uses config.toml inside root directory. You can point another config.toml like

zola --config /where file is/config.toml build

You may change to solarized-dark, the row is highlight_theme = "kronuz"

So does that mean the ./themes/docsascode/config.toml is not used as the default?

yes, default is ./config.toml

The config.toml of a theme is actually not used at all by Zola, only theme.toml is. config.toml in a theme is for the person developing the site, so it can be ran as a site.

| keats
October 6 |

  • | - |

The config.toml of a theme is actually not used at all by Zola, only theme.toml is. config.toml in a theme is for the person developing the site, so it can be ran as a site.

Thanks.