cogear.js icon indicating copy to clipboard operation
cogear.js copied to clipboard

Data files and collections

Open kropsi opened this issue 7 years ago • 1 comments

@codemotion great initiative you started here, thank you!

What are your thoughts on jekyll's data files and collections that provide users with re-usable data stores which then can be used to autogenerate content across pages. Do you plan for something similar in cogear.js?

kropsi avatar Oct 23 '18 05:10 kropsi

Hi, kropsi! Thanks.

You can use sections in config.yaml to provide any data to the templates.

Look at that: https://github.com/codemotion/cogearjs.org/blob/master/config.yaml

How blog author data is provided and given to any blog post template.

If you would mind to write a plugin for different approach (like in Jekyll) or to embed this feature into the core — you're welcome.

dbelyaeff avatar Oct 23 '18 08:10 dbelyaeff