Hugo uses TOML (Tom’s Obvious Minimal Language) for its configuration, a default I override immediately with JSON. Today I discovered something unique about TOML: it’s great for configuration from the terminal.

When you setup a Hugo app, the docs give you instructions you can paste right into your terminal:

git init
git submodule add https://github.com/gohugo-ananke/ananke themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo server

The third line configures Hugo to use the Ananke theme by echo-ing that setting into the TOML configuration file.

TOML handles this instruction well! Its two primary competitors, JSON and YAML, likely won’t. JSON is particular, requiring balanced key-value pairs and correctly placed commas. YAML uses meaningful indentation. A command from the internet can’t know how to do these correctly, but with TOML, it doesn’t matter. echo works.