Skip to content

Commit

Permalink
feat($theme-default): should allow for optional h1 text at homepage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri authored and ulivz committed Feb 24, 2019
1 parent 505fea6 commit 598799f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vuepress/theme-default/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<img
v-if="data.heroImage"
:src="$withBase(data.heroImage)"
alt="hero"
:alt="data.heroAlt || 'hero'"
>

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

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

0 comments on commit 598799f

Please sign in to comment.