A minimal, lightweight and mobile-first starter for creating blogs uses Gatsby.

Quick Start

Start Developing

Navigate into your new site’s directory and start it up.

cd $REPO_DIRECTORY_PATH
gatsby develop

Open the source code and start editing!

Your site is now running at http://localhost:8000!

Note: You’ll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

Open the blog directory in your code editor of choice and edit src/templates/index-template.js. Save your changes and the browser will update in real time!

Deploy with Netlify

Netlify CMS can run in any frontend web environment, but the quickest way to try it out is by running it on a pre-configured starter site with Netlify. Use the button below to build and deploy your own copy of the repository:

Deploy to Netlify

After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete. Next, you’ll need to set up Netlify’s Identity service to authorize users to log in to the CMS.

Deploy to Github Pages

To deploy to github pages, simply do the following:

npm run deploy

Run Locally

$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
$ cd [REPO_NAME]
$ yarn
$ yarn develop

To test the CMS locally, you’ll need run a production build of the site:

$ npm run build
$ gatsby serve

Folder Structure

└── content
    β”œβ”€β”€ pages
    └── posts
└── static
    β”œβ”€β”€ admin
    └── media
└── src
    β”œβ”€β”€ assets
    β”‚Β Β  └── scss
    β”‚Β Β      β”œβ”€β”€ base
    β”‚Β Β      └── mixins
    β”œβ”€β”€ cms
    β”‚Β Β  └── preview-templates
    β”œβ”€β”€ components
    β”‚Β Β  β”œβ”€β”€ Feed
    β”‚Β Β  β”œβ”€β”€ Icon
    β”‚Β Β  β”œβ”€β”€ Layout
    β”‚Β Β  β”œβ”€β”€ Page
    β”‚Β Β  β”œβ”€β”€ Pagination
    β”‚Β Β  β”œβ”€β”€ Post
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Author
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Comments
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Content
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Meta
    β”‚Β Β  β”‚Β Β  └── Tags
    β”‚Β Β  └── Sidebar
    β”‚Β Β      β”œβ”€β”€ Author
    β”‚Β Β      β”œβ”€β”€ Contacts
    β”‚Β Β      β”œβ”€β”€ Copyright
    β”‚Β Β      └── Menu
    β”œβ”€β”€ constants
    β”œβ”€β”€ templates
    └── utils

License

The MIT License (MIT)

Copyright (c) 2019 Renato Benkendorf

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the β€œSoftware”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.