docs: update encrypted post content demo

This commit is contained in:
YunYouJun 2025-03-15 19:32:09 +08:00
parent b1d77e7a65
commit 3cd1c63896
2 changed files with 13 additions and 12 deletions

View File

@ -6,24 +6,26 @@ categories:
- examples
---
密码为 `valaxy`
```md
<!-- valaxy-encrypt-start:valaxy -->
::: details dynamically rendered frontmatter
{{ frontmatter }}
我是被加密的文本。
::: details dynamically rendered frontmatter 支持动态渲染
**Frontmatter**: {{ frontmatter }}
:::
<!-- valaxy-encrypt-end -->
```
::: zh-CN
渲染结果
:::
## 渲染结果 {lang="zh-CN"}
::: en
Rendering result
:::
## Rendering result {lang="en"}
<!-- valaxy-encrypt-start:valaxy -->
::: details dynamically rendered frontmatter
{{ frontmatter }}
我是被加密的文本。
::: details dynamically rendered frontmatter 支持动态渲染
**Frontmatter**: {{ frontmatter }}
:::
<!-- valaxy-encrypt-end -->

View File

@ -45,10 +45,9 @@ export default defineConfig({
'custom-uno-btn',
'px-4 py-1 rounded inline-block bg-teal-700 text-white cursor-pointer !outline-none hover:bg-teal-800 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'
],
]
],
safelist: ['bg-red-500'],
})
```
::: zh-CN