Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't render pages within a section #1356

Open
arthmis opened this issue Feb 15, 2021 · 6 comments
Open

Don't render pages within a section #1356

arthmis opened this issue Feb 15, 2021 · 6 comments

Comments

@arthmis
Copy link

arthmis commented Feb 15, 2021

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.

@Keats
Copy link
Collaborator

Keats commented Feb 15, 2021

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

@arthmis
Copy link
Author

arthmis commented Feb 15, 2021

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?

@Keats
Copy link
Collaborator

Keats commented Feb 15, 2021

Sure

@edwardwolcher
Copy link

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.

@techware01
Copy link

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

@Keats
Copy link
Collaborator

Keats commented Dec 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants