node package manager


Base Hexo-Admin

This is an hexo plugin based on HEXO-ADMIN .

Hexo Version

For 2.x, use version 0.3.0 of this plugin. Version 1.x and beyond only support Hexo v3.x.






1. Setup hexo & create a blog

npm install -g hexo
cd ~/
hexo init my-blog
cd my-blog
npm install

2. Install the admin & start things up

npm install --save hexo-admin-yf
hexo server -d
open http://localhost:4000/admin/

3. Password protection

If you're using Hexo admin on your live server, you want some password protection. To enable this, you just add a few config variables to your hexo _config.yml:

  username: myfavoritename
  password_hash: be121740bf988b2225a313fa1f107ca1
  secret: a secret something

The password_hash is the bcrypt hash of your password. The secret is used to make the cookies secure, so it's a good idea to have it be long and complicated.

A utility in Hexo admin's Settings can hash your password and generate the admin section for you. Start Hexo and go to Settings > Setup authentification and fill out your information. Copy the generated YAML into your _config.yml.

Once that's in place, start up your hexo server and going to /admin/ will require you to enter your password.

4. Custom post metadata

To add and edit your own post metadata with the admin interface, add the metadata variable and your custom variables to your hexo _config.yml:

  author_id: defaultAuthorId

You can provide default values that will be used to initialize the metadata of a new post.

5. Contribute!

Qiniu Support!

Get Your Qiniu Keys:

upload successful

Get Your Qiniu Test Domain And Bucket:

upload successful To Support Qiniu, add the qiniu variable to your hexo _config.yml:

  bucket: [your qiniu bucket key here]
  domain: [your qiniu outlink domain here]
  ACCESS_KEY: [your qiniu access key here]
  SECRET_KEY: [your qiniu secret key here]


built with ❤ by Wang Fan ( using react, browserify, and less.