We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 505fea6 commit 598799fCopy full SHA for 598799f
packages/@vuepress/theme-default/components/Home.vue
@@ -4,10 +4,10 @@
4
<img
5
v-if="data.heroImage"
6
:src="$withBase(data.heroImage)"
7
- alt="hero"
+ :alt="data.heroAlt || 'hero'"
8
>
9
10
- <h1 id="main-title">{{ data.heroText || $title || 'Hello' }}</h1>
+ <h1 v-if="data.heroText !== null" id="main-title">{{ data.heroText || $title || 'Hello' }}</h1>
11
12
<p class="description">
13
{{ data.tagline || $description || 'Welcome to your VuePress site' }}
0 commit comments