Skip to content

Split toml file #397

@benoitmasson

Description

@benoitmasson

I'm using a TOML file for my site configuration with Hugo.

My configuration is pretty long and I would like to split it into several files. However, Hugo requires that the configuration is found in a single file named config.toml, preventing me to split it into several sub-files (since I can refer to only one of them).

Not talking about my particular case anymore, wouldn't it be interesting and useful to have a kind of include "config_local.toml" keyword, to be able to add extra key-value pairs in another file? Or is there another simple way to do something similar?

This would allow global vs. local configuration, easier sharing and versioning, and probably other things that I didn't think of...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions