hexo加密博客

1.安装hexo-blog-encrypt(不推荐,要https,不然输入密码无反应)

1
2
3
4
5
6
7
8
9
10
11
1.npm install hexo-blog-encrypt
2.修改根目录_config.yml
encrypt:
enable: true


title: dangdang影视
categories:
- 项目
password: 设置的密码
message: 请输入密码提示

2.采用第三方插件hexo-encrypt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
npm install hexo-encrypt --save
在hexo的配置文件_config.yml下进行配置
encrypt:
password: 123456

这里的password为默认密码,如果在文章头没有申明独立密码,则可以用默认密码解锁文章。

使用:将 “encrypt” 字段添加到您文章信息头就像这样,”enc_pwd”申明独立密码。
---
title: Hello World
date: 2016-03-30 21:18:02
encrypt: true
enc_pwd: 123456
---
最后hexo cl再hexo g和hexo d

3.如何解决 npm install 卡在“sill idealTree buildDeps“的问题

1
2
3
npm config delete registry
npm config set registry https://registry.npmmirror.com
npm install hexo-blog-encrypt

hexo加密博客
http://example.com/2025/04/03/hexo加密博客/
作者
zgx
发布于
2025年4月3日
许可协议