gatsby-node.js built on consistent models and fragments, which takes
care of pulling data from Contentful.
Have a look at the boilerplate to so see how to use this.
Wheelroom is a tool for managing content models. It was designed to populate a headless CMS like contentful, generate graphql and generate boilerplate code.
The theme can handle three query types:
- page: pages have a path which is used to create the actual pages
- subPage: subPages have a slug from which the path is created
- global: global data is added to every page
Install the plugin by adding it to your
// Wheelroom generated files with graphqlconst articleQuery =const globalsQuery =const pageQuery =moduleexports =plugins:options:defaultLocale: 'en-US'pageTemplate: pathqueries: articleQuery globalsQuery pageQueryresolve: `gatsby-theme-wheelroom`...