For instance I've created a "news" type. Every time I update my site I create a new file (for instance news20180824.md) and on its metadata I put type=news.
Then I want in my index page to have all the news and I don't want to produce a single page for every news file.
I've "hacked" jbake to do this putting this line:
if ("none".equals(findTemplateName(docType))) return;
as the second line in "Renderer.render(Map<String, Object> content) throws Exception" and setting:
template.news.file=none
in jbake.properties.
It's a dirty hack but I think the need I have could be common to others.
Probably would be better to have that no template defined for a type means no rendering but the template definition id mandatory to have the data on the data model and not copied as is on the output.
I'd like a comment, at least at my request. Could be there is already a way to do it that I've overlooked.
Thanks
--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.