Hugo not recognizing section templates. Only _default/list.html

I know this question has been asked before but I couldn’t find an answer.

I am trying to create different sections: blog, photos, books. I want to create one list template for each of them.

I have tried placing them in the order of priorities suggested in the documentation, but Hugo is only picking up the list.html that is located under /theme/_default/. After running hugo --verbose it says that Hugo is not finding the other templates.

I’m really stumped with this one.

Anyone has had any experience with this problem?

Thanks,
Mario

Can you post your directory structure showing where the files are? It’ll be easier to find the issue.

Sure, here you go:

├── config.toml
├── archetypes
├── content
| ├── blog
| | ├── firstpost.md
| | └── secondpost.md
| └── books
| | ├── firsttitle.md
| | └── secondtitle.md
| └── travel
| | ├── firstcity.md
| | └── secondcity.md
├── layouts
├── themes
| ├── basic
| | ├── _default
| | ├──list.html
| | ├──single.html
| | ├── blog
| | ├──list.html
| | ├──single.html
| | ├── books
| | ├──list.html
| | ├──single.html
| | ├── travel
| | ├──list.html
| | ├──single.html
└── static
├── css
└── images

It’s only pulling the list template from _default.

Thanks.

Your template files are in themes/basic. You need to move them to themes/basic/layouts.

I finally solved it. I was using plural to name the different content sections and I should have used singular.

Furthermore, i created a /section folder under THEME/layouts/ where I created the different list templates for each section. You have to call those templates with the name of each section, in singular, followed by .html.

Everything working fine now.

Thanks to those who tried to help.