How to list all nested blog posts on the homepage?

I’m trying to list all my blog posts on the site’s homepage (/), which uses templates/home.html.

My posts are organized in nested directories under content/blog/ (e.g., content/blog/2025/05/my-post/index.md).

I’ve tried using {% set blog_section = get_section(path="blog/_index.md") %} and looping over blog_section.pages in home.html, but this seems to only get posts directly under content/blog/, not the nested ones. I also tried configuring the root content/_index.md with paginate_path = "blog", but the paginator.pages in home.html didn’t seem to contain the nested posts correctly.

Is there an idiomatic Zola way to get all pages (recursively) from the /blog/ section and display them on the homepage (/) template, without requiring every post to have a specific taxonomy term?

Thanks!

Hi! I had a similar nesting issue and solved it using transparent = true.

For my structure (like content/blog/2025/), I put this in content/blog/2025/_index.md:

+++
transparent = true
+++

This made the pages inside 2025/ show up directly in the parent /blog section’s section.pages.

Since your structure (blog/YYYY/MM/) is deeper, you might need to place transparent = true differently (maybe directly in content/blog/_index.md or relevant subdirectories?). It’s worth experimenting with!

1 Like

thank you!
I had to put it inside blog/2025/ and blog/2025/05

1 Like