I’m learning Hugo using Hugo in Action, a book from 2022. The book is out of date. The author uses a version from before the templating rework described in the docs page New template system in Hugo v0.146.0. I’m using v0.124.1 as I complete the book.
The example website in the book has files in the directory layouts/modern called terms.html and taxonomy.html. It uses the terms.html file to render the URL /categories and the file taxonomy.html to render the URL /categories/circle.
I can’t find any mention of a file called terms.html in the docs page I linked above or in the docs page Template lookup order. After reading the latest docs, how I think the latest version of Hugo should work is that it will look for a file called taxonomy.html to render a taxonomy (aka a list of terms) and a file called term.html to render a term from a taxonomy (aka a list of content items). Is this understanding correct?
And does this mean that Hugo no longer uses a file called terms.html for this, and that the mapping from old to new file used is the following?
| kind | file used before | file used now |
|---|---|---|
| taxonomy | terms.html | taxonomy.html |
| term | taxonomy.html | term.html |