/content/
| _ /blog/ (all blog posts with _index.md)
| _ /poem/ (all poem posts with _index.md)
| _ /quote/ (all quote posts with _index.md)
On the /layouts/_default/ folder, I have list.html with content of all 3 section above.
I want _index.md of each folder only display each of its section.
So, _index.md inside blog folder only displaying posts from blog folder. And _index.md inside poem folder only displaying posts from poem folder. Also _index.md inside quote folder only displaying posts from quote folder.
How to solve this? Or I have to create different list layout for each section?
My current method is create 3 deifferent layouts (listblog.html, listpoem.html, listquote.html) inside /layouts/_default folder. I don’t know which one is more efficient result between your suggestion or my current method?
I guess its depend on your needs, but imo having different layout directory will make theme easier to manage, specialy if i have different template (single, list, custom uptout etc) for each content.
I don’t know which code is wrong. So, I reverted back to the default theme code here ->
But the problem with the default code above is, the result only displaying posts from Poem section only, without displaying posts from Blog and Quote section?
The layouts/_default/list.html should be renamed/moved to layouts/index.html, it at least look like what you want on the home page and not on default list pages.
I would then put something like the following in a new layouts/_default/list.html: