Hi there! I recently migrated from hugo 0.58.3 to 0.77.0
In my Hugo Website, I have a
/blog section, and I list all pages in that section with “.Pages”.
Some pages in the blog are “section page” (a directory with a
_index.md files and subdirectories containing each one
/blog |___/post1 | |__ index.md | |___ /post2 | |__ index.md | |___/section-page |__ _index.md | |__ /post1 | |__ index.md | |__ /post2 | |__ index.md
with Hugo 0.58, the
.Pages method in the blog list template returned me the subsection page with the leaf pages, wich was very convenient for me, as I wanted to list this subsection as an element of the blog (but not the subsection children).
but now with 0.77.0,
.Pages does not return the subsection anymore. I did not get it neither with .RegularPages, and I dont want to list all subsection pages using
.RegularPagesRecursive, I only want an entry in the blog for the subsection.
I tried to add a frontmatter in the subsection _index.md, telling to list this page
_build: render: always list: always publishResources: true
But no success
The documentation says:
Collection of regular pages and only first-level section pages under the current list page.
Seems like this is not true anymore. Is there something I’m missing ? What would be the correct way to do? If You need it my repo is here: https://github.com/pau-a-velo/pauavelo-website/
The subsection with other pages is
content/blog/2020/Municipales 2020 - Analyse des réponses des candidats/