appendix B. TOML and JSON for metadata
While we use YAML throughout the book for metadata and configuration, TOML is the default in Hugo and continues to gain popularity. JSON is more straightforward for the machine to read, and JSON generation is popular in content management systems that build over Hugo.
B.1 Tom’s Obvious, Minimal Language (TOML)
TOML is the default metadata language in Hugo. Most of the community uses this language, and you will find most of the documentation in TOML.
Unlike YAML, the objective of TOML is to have clarity of representation (and machine readability) over human readability. TOML has stricter data types than YAML. For example, YAML automatically coerces true and false to Boolean. We need to wrap true and false ...
Get Hugo in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.