Define draft variable in config.toml

Hello,

We have several Hugo sites all using the same set of Markdown pages. When a page is edited it gets deployed on each site and some differences in the content are handled with shortcodes.

But some pages have to be deployed only on some sites and not others. So we wanted to use the “draft” variable to render them only when they are needed.

The tricky part now : we are looking for a way to have that draft variable getting its value from the config.toml dedicated to the site. And shortcodes seems to not be a solution as they are not handled in Front Matter (right?).

Does anyone know about a solution to set this draft value through config.toml ?

You can set front matter values via cascade in config:

Thank you :slight_smile: