-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(theme-yun): strato nimbo banner compatibility, close #508
- Loading branch information
Showing
10 changed files
with
808 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: Code height limit | ||
title_zh: 代码块高度限制 | ||
toc: true | ||
categories: | ||
- examples | ||
codeHeightLimit: 300 | ||
--- | ||
|
||
::: zh-CN | ||
在 Front Matter 中设置 `codeHeightLimit: 300`。 | ||
::: | ||
|
||
::: en | ||
Set `codeHeightLimit: 300` in Front Matter. | ||
::: | ||
|
||
```md | ||
--- | ||
codeHeightLimit: 300 | ||
--- | ||
``` | ||
|
||
::: zh-CN | ||
渲染结果 | ||
::: | ||
|
||
::: en | ||
Rendering result | ||
::: | ||
|
||
```ts | ||
import type { ThemeConfig } from 'valaxy-theme-yun' | ||
import { defineValaxyConfig } from 'valaxy' | ||
|
||
const safelist = [ | ||
'i-ri-home-line', | ||
] | ||
|
||
export default defineValaxyConfig<ThemeConfig>({ | ||
// site config see site.config.ts or write in siteConfig | ||
// siteConfig: {}, | ||
|
||
theme: 'yun', | ||
themeConfig: { | ||
|
||
banner: { | ||
enable: true, | ||
title: '云游君的小站', | ||
}, | ||
|
||
notice: { | ||
enable: true, | ||
content: '公告测试', | ||
}, | ||
}, | ||
|
||
unocss: { | ||
safelist, | ||
}, | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c6f88b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67bb44ce3601bff61e5f5b7e--valaxy.netlify.app