https://github.com/decaporg/hexo-cms-example
An example Hexo + Decap CMS integration
https://github.com/decaporg/hexo-cms-example
decap-cms hexo
Last synced: 8 months ago
JSON representation
An example Hexo + Decap CMS integration
- Host: GitHub
- URL: https://github.com/decaporg/hexo-cms-example
- Owner: decaporg
- Created: 2015-11-12T22:59:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T13:54:23.000Z (about 3 years ago)
- Last Synced: 2025-07-18T15:01:47.577Z (11 months ago)
- Topics: decap-cms, hexo
- Language: CSS
- Homepage:
- Size: 978 KB
- Stars: 35
- Watchers: 3
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/remotesynth/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](https://github.com/netlify/netlify-git-api) before you start.
Then:
```bash
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:
```bash
npm install
hexo server
```
## Using
Visit [localhost:4000](http://localhost:4000/) to browser the site.
Visit [localhost:4000/admin](http://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:
```bash
CMS_ENV=production hexo server
```