Skip to content
/ hexo-cms-example Public template

An example Hexo + Decap CMS integration

Notifications You must be signed in to change notification settings

decaporg/hexo-cms-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexo + Decap CMS

This is a simple example of how to integrate Decap CMS with a hexo based site.

It's based on Brian Rinaldi's great Static Site Samples and meant as a simple example of how to hook Decap CMS up with a hexo based site.

Setting up

Make sure to install the netlify-git-api before you start.

Then:

git clone https://github.com/decaporg/hexo-cms-example.git
cd hexo-cms-example
netlify-git-api users add
netlify-git-api serve

Open a separate terminal window and run:

npm install
hexo server

Using

Visit localhost:4000 to browser the site.

Visit localhost:4000/admin to use the CMS.

To run against the GitHub API in production, edit the production backend settings for admin/index.ejs with the correct repository and branch.

Then run:

CMS_ENV=production hexo server