File tree 1 file changed +33
-1
lines changed
1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -136,18 +136,23 @@ interface Feature {
136
136
137
137
// 点击 feature 组件时的链接,可以是内部链接,也可以是外部链接。
138
138
//
139
+ //
139
140
// 例如 `guide/reference/default-theme-home-page` 或 `https://example.com`
140
141
link? : string
141
142
142
143
// feature 组件内显示的链接文本,最好与 `link` 选项一起使用
143
144
//
145
+ //
144
146
// 例如 `Learn more`, `Visit page` 等
145
147
linkText? : string
146
148
147
149
// `link` 选项的链接 rel 属性
148
150
//
149
151
// 例如 `external`
150
152
rel? : string
153
+
154
+ // `link` 选项的链接 target 属性
155
+ target? : string
151
156
}
152
157
153
158
type FeatureIcon =
@@ -160,4 +165,31 @@ type FeatureIcon =
160
165
width? : string
161
166
height: string
162
167
}
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
+ :::
You can’t perform that action at this time.
0 commit comments