zola icon indicating copy to clipboard operation
zola copied to clipboard

Don't render pages within a section

Open arthmis opened this issue 3 years ago • 6 comments

Hi I'm trying to take some markdown files that follow the same pattern and render them onto one page. I want to organize them within a section, however I don't want to render the actual markdown files, only _index.md. I have not found anyway to tell Zola to not render pages within a section. I'm essentially trying to take advantage of a for loop to render each page onto index.html.

arthmis avatar Feb 15 '21 05:02 arthmis

No way to do that right now. I don't think it's planned either.

Keats avatar Feb 15 '21 10:02 Keats

Ok cool, so I'll have to remove the files after build process then and I guess from the sitemap too. I guess I can do that, there aren't too many pages. Should I keep this issue open?

arthmis avatar Feb 15 '21 14:02 arthmis

Sure

Keats avatar Feb 15 '21 18:02 Keats

Would adding a "render_pages" front-matter variable for sections and/or a "render" front-matter variable for pages be accepted as a pull request?

I'd also love to be use unrendered markdown pages this way.

edwardwolcher avatar Mar 16 '21 19:03 edwardwolcher

Interested in this topic as well. Would be great to have a render front-matter for single pages as well. Any news on that?

techware01 avatar Dec 03 '23 23:12 techware01

We could add render to pages and a render_pages to sections. What would happen if render_pages = false and a page in it has render = true though? I would say ignore the page

Keats avatar Dec 04 '23 08:12 Keats