YAML is the default, TOML is what Hugo prefers, JSON is rare but possible; all three delimit the same concept.
Aspect | YAML | TOML | JSON | |
|---|---|---|---|---|
Delimiter |
|
|
| |
Typical tool | Jekyll, Eleventy, Astro | Hugo | Custom | |
Readability | High | High | Low (quotes, braces) | |
Indentation | Significant | Not significant | Required | |
Multi-line strings | `\ |
|
| Escape |
Best for | Hand-edited config | Config-heavy sites | Machine output |