Does Hugo use a `terms.html` file when it looks up templates for taxonomies?

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

I think that one answers your question:

Yes, it does! Thank you! Sorry for adding this duplicate question here, it’s just that I struggled to find an authoritative answer to this after browsing the docs and this forum.

I believe this reply answers it well (that latest Hugo does not use a terms.html file) and this one that you linked provides the background context.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.