Welcome to Hexo-NetlifyCMS! This is your very first post. Check Hexo and NetlifyCMS for more info. If you get any problems when using Hexo-NetlifyCMS, you can find the answer in Hexo troubleshooting , NetlifyCMS issues or you can ask me on GitHub.
Let’s get started with Hexo-NetlifyCMS step by step.
Fork Hexo-NetlifyCMS on Github
More info: Configuration
Build command: hexo generate
More info: A Step-by-Step Guide: Hexo on Netlify
Netlify’s Identity and Git Gateway services allow you to manage CMS admin users for your site without requiring them to have an account with your Git host or commit access on your repo. From your site dashboard on Netlify:
- Go to Settings > Identity, and select Enable Identity service.
- Under Registration preferences, select Open or Invite only. In most cases, you want only invited users to access your CMS, but if you’re just experimenting, you can leave it open for convenience.
- If you’d like to allow one-click login with services like Google and GitHub, check the boxes next to the services you’d like to use, under External providers.
- Scroll down to Services > Git Gateway, and click Enable Git Gateway. This authenticates with your Git host and generates an API access token. In this case, we’re leaving the Roles field blank, which means any logged in user may access the CMS. For information on changing this, check the Netlify Identity documentation.
You’ll need to add this to the
<head> of your CMS index page at /admin/index.html, as well as the
<head> of your site’s main index page.We could include the script in your site using Netlify’s Script Injection feature;
Add the following script before the closing body tag of your site’s main index page using Netlify’s Script Injection feature.
Now you can control site content in https://yoursite.netlify.com/admin/