From df249e74396ef569ce7c5d31065cb3920f62b103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E9=A3=8E?= Date: Thu, 13 Feb 2025 17:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8A=A0=E5=AF=86=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 6 ++++++ package.json | 1 + source/_posts/hello-world.md | 8 +------- source/_posts/千寻产品线一张图.md | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) 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 ---