Closed fbnlsr closed 4 years ago
That might be what I'm looking for indeed. 🤔
Is there a way to use multiple data sources? More precisely, is it possible to browse several folders? In my particular case, I'm using a collection of multiple yml
files spread across several folders and I need to loop through them to get the data I need.
You can just use set
to store all the data loaded in a variable as many times as you want, they just need to be in the content
directory.
I get that, but is Zola able to discover and loop through several folders? I have a bunch of auto-generated folders that I scrape to build the comment section of my blog. The structure looks like this: https://github.com/fbnlsr/primative.net/tree/master/data/comments
Ah if they are auto-generated then it's not going to be possible :/
this is a feature that I'd be interested as well, I'd be willing to implement it if there's no objections.
It would be nice to be able to use datasets (from yml, TOML or json files for instance) inside templates in Zola.
Jekyll uses Data Files, Hugo uses the Data Folder. Zola should have something similar.