Setting up Netlify CMS with Github-Pages Hosted Jekyll Site:

Lets face it, We have our beautiful Jekyll Site ready, but what if we want to ensure that it is as easy to update the site without any technical / markup sideof it. The administration should be simple and easy for any author or editor who wants to update the content of your site. To solve this problem, we are going to use Netlify CMS with our Devlopr Jekyll Blog. In this article I will show you how I setup Netlify CMS for my Github Pages Hosted site

This post walks through the really fast process of adding Netlify CMS to an existing GitHub Pages devlopr site. At the end of this post you should have:

  • A functioning CMS for your static GitHub Pages site
  • Your GitHub Pages site still hosted by GitHub Pages, not Netlify
  • Logging into the CMS through GitHub OAuth, with Netlify auth servers (not git-gateway)

Let’s get started :

1. Creating an GitHub OAuth App

First, go to Github Dev Settings and click New OAuth App.

Enter whatever you like for Application name and Homepage URL.

In Authorization callback URL, enter:

Once finished, leave the page in the background. You will need the Client ID and Client Secret on this page later.

2. Creating a Netlify Site

… Relax! We’re just creating one, without actually using it. In fact, if you want to deploy Jekyll site on Netlify, you will need to include Jekyll (generator) in your git repo.

Go to Netlify and create a new site from…any repo. We are not really using Netlify to host that, anyway.

After that, go to Settings, and copy your Site name. It should be something like agitated-northcutt-53b578.

From the sidebar go to Domain Management and add your GitHub Pages domain ( as a custom domain. Choose Yes when asked if you are’s owner.

In my case I added, since that’s my custom domain, otherwise it would have been

From the sidebar go to Access control, scroll down to OAuth and click Install provider.

Choose GitHub as provider, and enter the Client ID and Client Secret from GitHub OAuth app page mentioned above.

Then you can close the Netlify and GitHub webpages.

3. Installing the CMS

Since you might have forked the repo, you might find a admin folder already existing inside the project, otherwise you need to create this files in your existing repo. Netlify CMS uses this configuration to update the blog posts. You can configure your Netlify CMS settings in config.yml file inside the admin folder.

/admin/ directory explained

The /admin/ directory contains the index.html and config.yml for Netlify CMS.

Here’s how the config.yml looks for now (in case of Github Pages hosted) Replace you with your Github’s username

  name: github
  repo: sujaykundu777/
  branch: master

media_folder: "assets/img/posts" # Media files will be stored in the repo under images/uploads
public_folder: "/assets/img/posts" # The src attribute for uploaded media will begin with /images/uploads

  - name: "blog" # Used in routes, e.g., /admin/collections/blog
    label: "Blog" # Used in the UI
    folder: "_posts" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "---" # Filename template, e.g.,
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "post"}
      - {label: "Author", name: "author", widget: "string"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Featured Image", name: "thumbnail", widget: "image"}
      - {label: "Category", name: "category", widget: "string", default: "jekyll"}
      - {label: "Summary", name: "summary", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}

You may edit this according to your preference.

and here’s how the index.html looks like

<!doctype html>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Admin - Content Manager</title>
  <!-- Include the script that builds the page and powers Netlify CMS -->
  <script src="^2.0.0/dist/netlify-cms.js"></script>

Accessing Netlify CMS Dashboard

The Dashboard can be accessed by admins using /admin URL.

That’s all, Now you can updated your Site using the Netlify CMS. You can visit the site at (you – your github username) 😀


No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *