In the content folder I have a “blog” folder with a few markdown files
In the layouts folder, I have a “blog” folder with both a single.html and list.html template.
The single.html template is being used to render the individual files as expected, but the list template is ignored and the one in _default is used instead. According to the docs, I think this is supported, but I’m stumped as to why it’s not working.
The blog folder you set up in layouts is only for the individual views, like “single.” You want to put your blog list view template in a section folder, like this:
Where you have the template blog/list you want section/blog.html
content/
blog/
post1.md
post2.md
Render each individual page (single) and the list template (section/blog) from a template other than the default:
layouts/
blog/
single.html
section/
blog.html
It may seem counterintuitive at first to arrange the layouts this way, but the blog folder contains all the views for a single blog item, so aggregate pages can’t go in there. Make sense?
According to the documentation you linked to, I understand that the /section/blog.html is the first choice template, followed by what I would expected to be /blog/list.html, at least that’s what the documentation appears to say to me.
You’re right. As @bep pointed out, the documentation is for a later version of Hugo than you are using. You should be able to set it up as I mentioned above, or upgrade Hugo to the latest. Sorry to confuse you. I tend to link to the docs automatically.