Template lookup order for layouts/section/section.html and layouts/taxonomy/list.html is invalid on 0.146.1.
WARN found no layout file for "html" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
git clone --single-branch -b hugo-forum-topic-54309 https://github.com/jmooring/hugo-testing hugo-forum-topic-54309
cd hugo-forum-topic-54309
hugo server
That works as expected.
That one does not work. Iβm not sure if this is an intentional breaking change.
I have both layouts/taxonomy/terms.html and layouts/taxonomy/list.html.
I hope layouts/taxonomy/terms.html for taxonomy templates and layouts/taxonomy/list.html for term templates, but layouts/taxonomy/list.htmlnot works as expected.
This is a v2 of the template system. You are supposed to upgrade your templates to the new setup.
I spent lots of time trying to map the old logic into the new setup. This is logic built up over a decade thatβs complex and very hard to understand. I think I got it mostly right, but you have discovered a hole.
Unless a very common construct, we (I) are not spending time adjusting the new setup to be compatible.
I assumed that there would be some level of noise in this release, but we really needed to do this. A general advice to people who see issues like the above:
If thereβs an easy and obvious adjustment, do that.
Else, use the previous Hugo version for a while, until better documentation about how the new works and how to adjust.