though I’m an experienced user HUGO user I struggle with template lookup order in a project I’m working on. The problem in short: HUGO renders a regular page “test” with the template under _defaults/single.html instead of test/single.html unlesss I specify explicitly type = “test” in frontmatter.
Here is my directory structure:
From my understanding HUGO should render content/test/index.md with the template saved under layouts/test/single.html but doesn’t unless I set type = “test”.
thanks for your reply. Yes I renamed to _index.md and HUGO than used layouts/_default/list.html for rendering (I didn’t have a more specific template test/list.html).
Unfortunately I don’t have a repo I can make public.
Hi Leo, I’m likewise on a Mac (Mojave 10.14) with HUGO 0.50. However, I understand from your replies that by default HUGO should use the template under test/single.html – in other words my understanding of the docs is right?