I’m trying to understand the new template lookup order and not much I’m trying is working. I was hoping I could do something like:
- layouts/
- single.html
- list.html
- single.myLayout.html
- list.myLayout.html
And then cascade layout in a few different sections across my site, but it’s not working. Everything is just using the basic templates (list.html and single.html). I was also surprised to note that if I remove “list.html” everything starts using "list.myLayout.html` regardless of where it is or what the frontmatter layout is set to.
I must be misunderstanding how multiple identifiers are intended to be used. I’ve also played around with changing the order of the identifiers, like myLayout.list.html.
To (hopefully) be clear, I was expecting that everything in sectionAA would use either list.mySection.html or single.mySection.html:
- content/sectionA/
- _index.md # should uselist.html- sectionAA/
- _index.html # set
cascade.layoutto “myLayout” (verified it’s working by adding {{ .Layout }} to my baseof.html - page1.md # set
layout: myLayout - page2.md
- _index.html # set
- sectionAA/
Moving the myLayout layouts to layouts/sectionA/sectionAA/{single,list}.html might work, except that I also want to use them in other random sections around the site.