You can deploy this to Netlify using this:
- Unzip the file or clone the repo and run
npm install
to install all the dependencies. - Run
npm run build
to build the site ( ornpm run start
to start the development mode)
- GatsbyJS - A static site generator for React
- TachyonsCSS - A functional CSS Toolkit
- NetlifyCMS - As an npm package that takes care of the admin/CMS part
src/pages
- To create a page, add a markdown file to this folder. The route is automatically added with the file name. Eg.about.md
compiles to/about/index.html
src/content
- This folder has content inJSON
format for all the pages.static/img
- Any image uploaded via the CMS gets added here.static/admin
- This has the config for NetlifyCMS. You can add fields for pages and also assign widgets to each field. More info here
- When one edits the content on NetlifyCMS, those files(JSON) are pushed to
src/content
folder. It understands what repo to use and where to dump content based on thestatic/admin/config.yml
file - Gastby's responsibility is to build the site and dump it into
public
folder. This happens whenever we runnpm run build
. The JSON files fromsrc/content
folder are used to build each page. - Netlify just runs the
npm run build
command on every push tomaster
branch and serves thepublic
folder