3.1 插件hexo-admin

插件hexo-admin

hexo-admin:用于管理文章

1.安装

1
npm install hexo-admin --save

2.使用

浏览器输入(端口为自己配置的端口)

1
http://localhost:4000/admin

3.设置

3.1设置密码

填写表格

将生成的代码粘贴到根目录下的**_config.yml**目录下

1
2
3
4
5
6
示例:
# hexo-admin authentification
admin:
username: admin
password_hash: $2a$10$c70ltt5euZi5loHaCEcKjOAFVcvGkrkY.p./2hfCMI7OPt9/O2fBi
secret: a159856**++-

重现启动服务

警告:没看懂干什么的

1
2
3
4
5
(node:22504) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)

翻译:
(node:22504)[DEP0066]DeprecationWarning:OutgoingMessage.prototype.\u头已弃用(使用'node--trace deprecation…'显示警告的创建位置

登录界面加载很慢,本地使用感觉没必要设置

3.2