docs: add encrypted content link desc, close #501

This commit is contained in:
YunYouJun 2025-01-25 19:54:53 +08:00
parent 0fc2adbc46
commit 572629ba22
1 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,10 @@ export default defineSiteConfig({
在对应需要加密页面的 frontmatter 中添加 `password: YourPassword` 即可。
`encrypt.enable``true`,且页面中密码 `password` 存在时,默认开启加密。
被加密的内容应在解密后动态渲染。此时无法(也不应)参与到构建流程中生成静态产物(否则会被直接看到)。
因此对于加密内容中的图片路径,总是应该使用绝对路径而非相对路径。
:::
::: en
@ -100,6 +104,9 @@ export default defineSiteConfig({
Add `password: YourPassword` to the frontmatter of the corresponding page to enable encryption.
When `encrypt.enable` is `true`, and the password `password` exists in the page, encryption is enabled by default.
The encrypted content should be dynamically rendered after decryption.
At this time, it cannot (and should not) participate in the build process to generate static artifacts (otherwise it will be seen directly).
:::
```md