I always get confused about which template file is being used. To fix it, I now make sure that the body classes include the name of the file being generated.
Actually the relevant template should be placed under /layouts/section/shows.html/
EDIT
Also I will give you one more hint @blablabla (before you say that you still do not see anything rendered with the template path I specified above).
The /shows/ section (as things are currently setup) does not contain regular .Pages, but instead Nested Sections due to your use of _index.md in every directory. Had you used index.md then these directories would have been regular .Pages.
So to populate the list under /shows/ (while keeping everything as is), you need to wrap everything right after the <main> tag within a range function and use the .Sections variable.
One last thing from me. The above template lookup PATH suggested by @brunoamaral is also correct.
However it all comes down to personal preference when it comes to maintaining a project.
Say you need custom layouts for several section lists.
With the above PATH you would need to create directories for each section under /layouts/<Section Name>/list.html
With the PATH I suggested you only need to create one directory under /layouts/section/<Section Name>.html
I always prefer to have as few directories as possible in a Hugo project (I h8 repetitive clicks).
check my new layout, where i cleaned up as per @alexandros suggestion
now, i wanna have a layout for brud.xyz/shows/ which collects info from the Pages within /shows/ folder. What layout should i use? And how to collect data?
These questions are fundamental and out of scope here. You need to read the Docs about:
range: range | Hugo
grouping content: collections.Group | Hugo
or even better go through the complete templates introduction: Templating | Hugo
And your issue is not a template lookup order issue.
You have not included any function to render the posts in your list page under: Files · master · Fust Kilas / oovoo · GitLab
Please re-read the replies I gave above and the links that I am posting to the Docs and if you still fail to render these posts in your list then ask again.
But we need to see some kind of working code.
We are not going to write the code for you. I’m sorry that’s the way it goes.
EDIT
Also with your latest commit you turned the /shows/ section into a regular page by changing the _index.md to index.md
As I said above
_index.md → Is for list pages = list template index.md → regular page = single page template
You need to revert the change you introduced in your last commit to turn this directory into a Hugo Section again.
Also do keep the index.md under the various subfolders so that these are .Pages for you to render after reading the links I posted above.