Hugo

Problem with taxonomy.html inside a custom folder

Hello, how are you?

I am starting my studies and a test project using Hugo. I’m really enjoying it, but I have a question about the file structure.

  • I created a new category within [taxonomies] in config.toml
  • I set the posts to publish within the new category.

In the theme inside the section folder I created the single.html and custom list.html for this section. The problem is that when I create taxonomy.html in this folder it is ignored and only the taxonomy template inside _default is displayed.

I didn’t understand why the other pages were recognized the custom layout and the taxonomy.html is ignored.

Thank you very much for your attention.

Hi,

I’m not sure I understand what you are trying to do here. Do you have your code somewhere we can have a look at? Please also have a read at Requesting Help to see how you can help us help you more easily.

1 Like