使用加密插件

This commit is contained in:
魏风
2025-02-13 17:57:17 +08:00
parent 420a7db331
commit df249e7439
4 changed files with 9 additions and 7 deletions

View File

@@ -106,6 +106,12 @@ search:
limit: 10000 limit: 10000
content: true content: true
# 加密插件配置
encrypt:
enable: true
abstract: 这篇文章已加密,输入密码查看内容。
message: 输入密码访问本文
# Deployment # Deployment
## Docs: https://hexo.io/docs/one-command-deployment ## Docs: https://hexo.io/docs/one-command-deployment
deploy: deploy:

View File

@@ -13,6 +13,7 @@
}, },
"dependencies": { "dependencies": {
"hexo": "^7.0.0", "hexo": "^7.0.0",
"hexo-blog-encrypt": "^3.1.9",
"hexo-generator-archive": "^2.0.0", "hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0", "hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0", "hexo-generator-index": "^3.0.0",

View File

@@ -1,18 +1,12 @@
--- ---
title: Hello World title: Hello World
index_img: /img/avatar.png index_img: /img/avatar.png
password: 1S59
--- ---
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues). Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
## Quick Start ## Quick Start
### image test
<iframe src="https://www.processon.com/embed/67a56ad638625f07c01febe3?cid=67a56ad638625f07c01febe6" width="800" height="600" frameborder="0" allowfullscreen></iframe>
# test 14
### Create a new post ### Create a new post
``` bash ``` bash

View File

@@ -3,6 +3,7 @@ title: 千寻产品线一张图
date: 2025-02-13 17:08:51 date: 2025-02-13 17:08:51
tags: 产品线 tags: 产品线
sticky: 100 sticky: 100
password: 1S59
--- ---