插件下载

1
npm install hexo-blog-encrypt


修改_config.yml

1
2
encrypt:
enable: true

xxxxxxxxxx # Beautify (美化頁面顯示)beautify: enable: true field: post # station/post title-prefix-icon: ‘\f863’ title-prefix-icon-color: ‘#F47466’yml

对应加密文章添加

1
2
3
4
5
6
7
8
---
title: Article Name
... 其他配置 ...
password: your password
abstract: Welcome to my blog, enter password to read.
message: your message
... 其他配置 ...
---