diff --git a/_config.yml b/_config.yml index f4e24b3..5c239ee 100644 --- a/_config.yml +++ b/_config.yml @@ -106,6 +106,12 @@ search: limit: 10000 content: true +# 加密插件配置 +encrypt: + enable: true + abstract: 这篇文章已加密,输入密码查看内容。 + message: 输入密码访问本文 + # Deployment ## Docs: https://hexo.io/docs/one-command-deployment deploy: diff --git a/package.json b/package.json index 779754c..4997e87 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "hexo": "^7.0.0", + "hexo-blog-encrypt": "^3.1.9", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", "hexo-generator-index": "^3.0.0", diff --git a/source/_posts/hello-world.md b/source/_posts/hello-world.md index ece6c4a..1bb29dc 100644 --- a/source/_posts/hello-world.md +++ b/source/_posts/hello-world.md @@ -1,18 +1,12 @@ --- title: Hello World 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). ## Quick Start -### image test - - - -# test 14 - ### Create a new post ``` bash diff --git a/source/_posts/千寻产品线一张图.md b/source/_posts/千寻产品线一张图.md index b944163..f8f2f7b 100644 --- a/source/_posts/千寻产品线一张图.md +++ b/source/_posts/千寻产品线一张图.md @@ -3,6 +3,7 @@ title: 千寻产品线一张图 date: 2025-02-13 17:08:51 tags: 产品线 sticky: 100 +password: 1S59 ---