File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
@vuepress/theme-default/components Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<h1 v-if =" data.heroText !== null" id =" main-title" >{{ data.heroText || $title || 'Hello' }}</h1 >
11
11
12
- <p class =" description" >
12
+ <p v-if = " data.tagline !== null " class =" description" >
13
13
{{ data.tagline || $description || 'Welcome to your VuePress site' }}
14
14
</p >
15
15
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ footer: MIT Licensed | Copyright © 2018-present Evan You
29
29
---
30
30
```
31
31
32
+ You can disable ` title ` and ` subtitle ` by setting the corresponding field to ` null ` .
33
+
32
34
Any extra content after the ` YAML front matter ` will be parsed as normal Markdown and rendered after the features section.
33
35
34
36
To use a fully custom homepage layout, you can also use a [ Custom Layout] ( #custom-layout-for-specific-pages ) .
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ footer: MIT Licensed | Copyright © 2018-present Evan You
27
27
---
28
28
```
29
29
30
+ 你可以将相应的内容设置为 ` null ` 来禁用标题和副标题。
31
+
30
32
任何 ` YAML front matter ` 之后额外的内容将会以普通的 markdown 被渲染,并插入到 ` features ` 的后面。
31
33
32
34
## 导航栏
You can’t perform that action at this time.
0 commit comments