Skip to content

Commit 60d5984

Browse files
docs(zh): tweak and sync translations (#3581)
sync with 0903027
1 parent 34adddc commit 60d5984

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Diff for: docs/zh/reference/default-theme-home-page.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,23 @@ interface Feature {
136136

137137
// 点击 feature 组件时的链接,可以是内部链接,也可以是外部链接。
138138
//
139+
//
139140
// 例如 `guide/reference/default-theme-home-page` 或 `https://example.com`
140141
link?: string
141142

142143
// feature 组件内显示的链接文本,最好与 `link` 选项一起使用
143144
//
145+
//
144146
// 例如 `Learn more`, `Visit page` 等
145147
linkText?: string
146148

147149
// `link` 选项的链接 rel 属性
148150
//
149151
// 例如 `external`
150152
rel?: string
153+
154+
// `link` 选项的链接 target 属性
155+
target?: string
151156
}
152157

153158
type FeatureIcon =
@@ -160,4 +165,31 @@ type FeatureIcon =
160165
width?: string
161166
height: string
162167
}
163-
```
168+
```
169+
170+
## Markdown 内容 {#markdown-content}
171+
172+
可以在 frontmatter 的分隔符 `---` 下方为站点主页添加额外的 Markdown 内容。
173+
174+
````md
175+
---
176+
layout: home
177+
178+
hero:
179+
name: VitePress
180+
text: Vite & Vue powered static site generator.
181+
---
182+
183+
## Getting Started
184+
185+
You can get started using VitePress right away using `npx`!
186+
187+
```sh
188+
npm init
189+
npx vitepress init
190+
```
191+
````
192+
193+
::: info
194+
VitePress 并不总是为 `layout: home` 页面里额外的内容自动添加样式。要回到以前的行为,可以在 fortmatter 中添加 `markdownStyles: false`
195+
:::

0 commit comments

Comments
 (0)