I still do not understand why hugo is not picking up my templates and goes to layouts/_default/single.html
I built a simple project with hugo new site test (no theme involved). My directory structure is below. Each template html contains the name of the template file, so I know for sure which one is picked.
Both test1 and test2 pickup _default/single.html template.
I expect : test1 to pickup layouts/test1/testlayout.html (or layouts/sections/test1/testlayout.html) test2 to pickup layouts/test2/single.html (or layouts/sections/test2/single.html)
My templates have the name of the templates in it, so I am sure which one is picked up. Example :
<html>
<body>
_default single
<p></p>
{{ .Title }}
</body>
</html>
Wow, thatβs a lot. My eyes are glazing over from looking at that much incline code formatting. Tell ya what, share a project and point to a content file and tell us which template you expect to render, and weβll go from there.
Even if I read all your notes, I donβt know if thatβs whatβs in the actual files, and sharing the code is faster.
In your content structure, you are creating a Page Bundles, Itβs like single content file but has a folder to bundle resources. Read more on Page Budles