Files
hugo/hugolib
Bjørn Erik Pedersen ba5d812673 config: Allow repeating the root key in /config files
If a non-default-name file in the config folder parses to a map with a
single top-level key matching the file's basename, unwrap it. This lets
TOML/YAML express slice-typed roots (cascade, permalinks), which can't
have a headless top-level array, and also lets users copy-paste docs
examples that include the root container (e.g. params.yaml with a
top-level params: block).

Fixes #12899
Fixes #14882

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 18:22:01 +02:00
..
2026-03-07 18:30:42 +01:00
2022-02-23 22:43:19 +01:00
2026-03-07 18:30:42 +01:00
2026-03-07 18:30:42 +01:00
2026-03-07 18:30:42 +01:00
2020-12-03 13:12:58 +01:00
2026-03-07 18:30:42 +01:00
2026-03-07 18:30:42 +01:00