Skip to content

Commit 598799f

Browse files
Ahmad Nassriulivz
Ahmad Nassri
authored andcommitted
feat($theme-default): should allow for optional h1 text at homepage (#1326)
1 parent 505fea6 commit 598799f

File tree

1 file changed

+2
-2
lines changed
  • packages/@vuepress/theme-default/components

1 file changed

+2
-2
lines changed

packages/@vuepress/theme-default/components/Home.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<img
55
v-if="data.heroImage"
66
:src="$withBase(data.heroImage)"
7-
alt="hero"
7+
:alt="data.heroAlt || 'hero'"
88
>
99

10-
<h1 id="main-title">{{ data.heroText || $title || 'Hello' }}</h1>
10+
<h1 v-if="data.heroText !== null" id="main-title">{{ data.heroText || $title || 'Hello' }}</h1>
1111

1212
<p class="description">
1313
{{ data.tagline || $description || 'Welcome to your VuePress site' }}

0 commit comments

Comments
 (0)