docs(zh): tweak and sync translations (#3581)

sync with 09030272b4
pull/3594/head
Xavi Lee 5 months ago committed by GitHub
parent 34adddcea4
commit 60d5984f9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -136,11 +136,13 @@ interface Feature {
// 点击 feature 组件时的链接,可以是内部链接,也可以是外部链接。
//
//
// 例如 `guide/reference/default-theme-home-page``https://example.com`
link?: string
// feature 组件内显示的链接文本,最好与 `link` 选项一起使用
//
//
// 例如 `Learn more`, `Visit page`
linkText?: string
@ -148,6 +150,9 @@ interface Feature {
//
// 例如 `external`
rel?: string
// `link` 选项的链接 target 属性
target?: string
}
type FeatureIcon =
@ -160,4 +165,31 @@ type FeatureIcon =
width?: string
height: string
}
```
```
## Markdown 内容 {#markdown-content}
可以在 frontmatter 的分隔符 `---` 下方为站点主页添加额外的 Markdown 内容。
````md
---
layout: home
hero:
name: VitePress
text: Vite & Vue powered static site generator.
---
## Getting Started
You can get started using VitePress right away using `npx`!
```sh
npm init
npx vitepress init
```
````
::: info
VitePress 并不总是为 `layout: home` 页面里额外的内容自动添加样式。要回到以前的行为,可以在 fortmatter 中添加 `markdownStyles: false`
:::

Loading…
Cancel
Save