Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

netlify-templates/hexo-cms-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Hexo + netlify CMS

⚠️ Deprecation Notice 🏳

We are focusing our resources on building new templates that help you build a better web, because of that we're deprecating this template. We care about the community so we propose if anyone wants to maintain or take stewardship over the project please contact us at devexperience@netlify.com. If you want to share anything with the team about this template, you can also fill out this form.

This is a simple example of how to integrate netlify 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 netlify 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/netlify-templates/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

About

An example hexo/netlify CMS integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published