TOML Tables
I was tripped up by a caveat in the TOML configuration specification for tables.
A table is a ‘map’ and is expressed as:
[tableName]
key1 = "value"
key2 = 123
The spec https://github.com/toml-lang/toml#user-content-table clearly states:
Under that, and until the next table or EOF are the key/values of that table.
The mistake I made was the following:
[taxonomies]
topics = "topics"
disableHugoGeneratorInject = true
What I was expecting was a table with a topics key / “topics” value and a configuration setting turning off the usage tracking feature in Hugo.
What I got was an additional key in the table called disableHugoGeneratorInject with value true.
This resulted in Hugo trying to generate a type of taxonomy called true and an error message:
found no layout file for “HTML” for kind “taxonomyTerm”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination
Woops.