# Taxonomy list page takes a wrong template

**URL:** <https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189>\
**Category:** support\
**Created:** [August 14, 2019, 1:55am UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189 "2019-08-14T01:55:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawsys](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pawsys/32/7949_2.png) [@pawsys](https://discourse.gohugo.io/u/pawsys)\
**Post date:** [August 14, 2019, 1:55am UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/1 "2019-08-14T01:55:51Z")

</div>

I have a taxonomy called “collections”

My taxonomy list pages are taking `layouts/_defaul/list.html` instead of `layouts/_default/collection.html`. This shouldn’t be the case looking at the [Layout Lookup for Taxonomy List Pages](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-taxonomy-list-pages)

If we go to [https://pawsys.github.io/collections/](https://pawsys.github.io/collections/) it displays the list page.

Here is my [hugo repo](https://github.com/pawsys/hugo). Here is my [Github Pages repo](https://github.com/pawsys/pawsys.github.io). Any help will be much appreciated!

---

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [August 14, 2019, 5:40am UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/2 "2019-08-14T05:40:25Z")

</div>

Hi Paweł!

You can move and rename

`/layouts/_default/collection.html`

to

`/layouts/taxonomy/list.html`

or—more specific—

`/layouts/collections/list.html`.

But there are several options. Have a look at the [lookup order](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-taxonomy-terms-pages).

---

<div class="post-metadata">

**Author:** ![pawsys](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pawsys/32/7949_2.png) [@pawsys](https://discourse.gohugo.io/u/pawsys)\
**Post date:** [August 14, 2019, 7:06pm UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/3 "2019-08-14T19:06:28Z")

</div>

Thanks this works. However, my solution also worked. I didn’t realized because I was confused with the naming and I am still confused…

The taxonomy docs establish naming this way:

```auto
Actors (taxonomy): Bruce Willis (term)

```

However, the lookup order works another way:  
`foo.com/actors` (is a terms page)  
`foo.com/actors/bruce-willis` (is a taxonomy list page)

Is this a naming inconsistency in the [taxonomy docs](https://gohugo.io/content-management/taxonomies/#movie-taxonomy-organization)?

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [August 14, 2019, 7:28pm UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/4 "2019-08-14T19:28:52Z")

</div>

It’s possible something is off, the naming of taxonomy and terms is a historical quirk of the Hugo project. Walk me through what seems off to you, though; I get these easily confused.

So, on your site, `collections` is the taxonomy, whereas `idea` is a taxonomy term.

- `https://pawsys.github.io/collections/` - `taxonomy` - `layouts/_default/taxonomy.html layouts/_default/list.html`
- `https://pawsys.github.io/collections/idea/` - `term` - `layouts/_default/terms.html layouts/_default/list.html`

The above is expected behavior. @pawsys are you saying the templates are being picked up in a different order?

---

<div class="post-metadata">

**Author:** ![pawsys](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pawsys/32/7949_2.png) [@pawsys](https://discourse.gohugo.io/u/pawsys)\
**Post date:** [August 14, 2019, 7:51pm UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/5 "2019-08-14T19:51:55Z")

</div>

Yes, exactly!

if I define `layout/_default/taxonomy.html`  
the page that changes is `https://pawsys.github.io/collections/idea/`.

and if I define `layout/_default/terms.html`  
the page that changes is `https://pawsys.github.io/collections/`

it works as if this is the syntax:  
`Actors (term): Bruce Willis (taxonomy)`  
but the syntax in hugo docs is:  
`Actors (taxonomy): Bruce Willis (term)`

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [June 24, 2022, 7:15pm UTC](https://discourse.gohugo.io/t/taxonomy-list-page-takes-a-wrong-template/20189/6 "2022-06-24T19:15:43Z")

</div>

A post was split to a new topic: [Taxonomy.html and terms.html reversed](https://discourse.gohugo.io/t/taxonomy-html-and-terms-html-reversed/39234)
