So ive just setup the one-click installer of Gatsby with Netlify CMS.
Im trying to figure out how to implement a way to add staff members to the default contact page.
in jekyllrb there was a simple collection content defined in the _config.yml
that you could fetch data from.
is there a similar way to use "custom" data collections with Gatsby? i dont want a separate page for each staff-member, just a way to loop all members to display on page and integrate with Netlify-CMS so i can ADD/UPDATE/DELETE staff-member. (i guess i want to do it in a react component called <Staff />
or something similar
ive tried to add a data folder that i thought could hold a md file to fetch collections from. but im getting an error that the src/data/collection.md
file needs a template (e.g templateKey: product-page
)
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/src/data/`,
ignore: [`**/\.*`], // ignore files starting with a dot
},
},
i understand this is a vague question, but maybe someone can point me in the right direction?