I have this structure, in my themes’ layouts
folder:
├── _default
│ ├── baseof.html
│ ├── list.html
│ └── single.html
└── index.html
├── reviews
│ ├── list.html
│ └── single.html
Most pages correctly pull from the _default
folder. If I go to url /reviews/
it correctly pulls the template reviews/list.html
.
However, if I go to an individual review at the url /reviews/name-of-review/
it uses the _default/single.html
template.
According to lookup order, I would expect reviews/single.html
to take precedence over _default/single.html
when in the context of the url /reviews/
. Isn’t that correct?
GitHub here (linked to the layouts folder). I’m running Hugo v0.40.2
EDIT: Pretty sure I messed myself up by using type=
too liberally in my original Mardown files’ front-matter. Now going through and cleaning that up, since Hugo uses that field so specifically. I’ll report back once I finish that work. (it won’t be fast: I am converting 5k old posts from JSON to TOML through a Python script that I’m currently refactoring)