Skip to content

Commit bd896c6

Browse files
authored
fix(theme): includes text to h1 tag for hero page (#4472)
closes #4453
1 parent f6b822e commit bd896c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/client/theme-default/components/VPHero.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
2929
<div class="main">
3030
<slot name="home-hero-info-before" />
3131
<slot name="home-hero-info">
32-
<h1 v-if="name" class="name">
33-
<span v-html="name" class="clip"></span>
32+
<h1>
33+
<span v-if="name" v-html="name" class="name clip"></span>
34+
<span v-if="text" v-html="text" class="text"></span>
3435
</h1>
35-
<p v-if="text" v-html="text" class="text"></p>
3636
<p v-if="tagline" v-html="tagline" class="tagline"></p>
3737
</slot>
3838
<slot name="home-hero-info-after" />
@@ -127,6 +127,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
127127
128128
.name,
129129
.text {
130+
display: inline-block;
130131
max-width: 392px;
131132
letter-spacing: -0.4px;
132133
line-height: 40px;

0 commit comments

Comments
 (0)