sunwengang blog

developer | android display/graphics

  1. 1. hexo-admin配置后台
    1. 1.1. 部署步骤
    2. 1.2. hexo的_config.xml配置
  2. 2. hexo-myadmin
    1. 2.1. 使用方法
    2. 2.2. 优点
    3. 2.3. 待完善
  3. 3. hexo-local-admin
    1. 3.1. 使用方法:
  4. 4. hexo-hey
    1. 4.1. 使用方法
    2. 4.2. 优点
    3. 4.3. 缺点

hexo-admin配置后台

查看github源项目: https://github.com/jaredly/hexo-admin

部署步骤

1
2
3
npm install --save hexo-admin
hexo server -d
open http://localhost:4000/admin/

hexo的_config.xml配置

1
2
3
4
5
6
admin:
username: zoro
password_hash:be121740bf988b2225a313fa1f107ca1
secret: hey hexo
deployCommand: './admin_script/hexo-generate.sh'
# expire: 60*1

hexo-myadmin

查看文档: https://www.npmjs.com/package/hexo-myadmin

使用方法

1
2
3
4
5
6
7
8
9
10
# install hexo-myadmin 
npm i hexo-myadmin --save

# start server with global hexo-cli
hexo server

# or with pm2 as deamon
pm2 start node_modules/.bin/hexo -- server

# visit localhost:4000/admin

优点

使用轻量级的插件,而且简化了界面,编辑书写方便,功能便捷

待完善

关于图片的功能不够完善,需要输入地址,这对于同一个内网不通的机器不方便。

hexo-local-admin

文档: https://www.npmjs.com/package/hexo-local-admin

使用方法:

1
2
3
4
5
1. install
npm install -g hexo-local-admin

2. use command
hexo-admin -h

hexo-hey

https://github.com/nihgwu/hexo-hey

使用方法

npm install hexo-hey –save

优点

可以粘贴图片

缺点

部分文章没有编辑的UI,原因待查

本文作者 : sunwengang
本文使用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议
本文链接 : https://alonealive.github.io/Blog/2019/07/08/2019/190708_hexo%E7%9A%84admin%E5%90%8E%E5%8F%B0%E6%90%AD%E5%BB%BA/

本文最后更新于 天前,文中所描述的信息可能已发生改变