How to get content from pages with disabled rendering?

Is there a way to get the content of paginated pages where render = false is set in the frontmatter of each page? I don’t need these pages to be generated separately; I only need their content to be available on the homepage.

When render = false the page is still available to templates/macros/shortcodes but it won’t be rendered by Zola when the site is built. This is unlike draft = true which not only won’t be rendered, it’s not even available to other templates/macros/shortcodes.

So you can do what you’re looking to do with something like

{% set page = get_page(path="<path>.md") %}

You just need to adapt the code above to work with your pagination code.

Docs for the get_page function are here. Also be mindful of file searching logic.

hope that helps!

Hmm… that’s not quite what I’m looking for. In my case, I need to iterate over all pages with render = false and paginate them in index.html template, but I won’t know the specific paths of those pages in advance. I need a way to get all pages marked render = false without specifying individual paths and paginate all of them. Do you know if there’s a way to do this in Zola?

See Include unrendered pages in sections, add render property to templates by clarfonthey · Pull Request #2585 · getzola/zola · GitHub which kinda relates to that. Can you comment on that if you have time?