Note: This starter uses Gatsby v2.
This repo contains an example business website that is built with Gatsby, and Netlify CMS: Demo Link.
It follows the JAMstack architecture by using Git as a single source of truth, and Netlify for continuous deployment, and CDN distribution.
- Node v10.16.0 or higher
- Gatsby CLI
Fork from https://github.com/steviemcg/scuguk
$ cd [REPO_NAME]
$ yarn
$ npm run start
To test the CMS locally, you'll need run a production build of the site:
$ npm run build
$ npm run serve
$ gatsby new [SITE_DIRECTORY_NAME] https://github.com/netlify-templates/gatsby-starter-netlify-cms/
$ cd [SITE_DIRECTORY_NAME]
$ npm run build
$ npm run serve
Windows users might encounter node-gyp
errors when trying to npm install.
To resolve, make sure that you have both Python 2.7 and the Visual C++ build environment installed.
npm config set python python2.7
npm install --global --production windows-build-tools
- Create a new Markdown file in src\pages
- Inside the Markdown file, assign a page template with the
templateKey
value. This should correspond to the template you want to use fromsrc\templates
Contributions are always welcome, no matter how large or small. Before contributing, please read the code of conduct.