Hugo

Custom Tag List Templates

I apologize if this is asked often, I have been searching for a while now and I’m having a hard time understanding where to place templates that will generate custom tag list pages for specific tags.

For instance, I want mysite/tags/recipes/index.html to use a different template than mysite/tags/cats/index.html

I know I can add if/then to the default template but I would rather set up a separate template for each tag that needs its own style of list page. Any help is greatly appreciated.

I asked too soon, I think I have solved it in a way that works for me. Add the file:
content/tags/recipes/_index.md

_index.md includes a type frontmatter
type: recipes

Under layouts, I will add the template:
layouts/recipes/list.html