Skip to content

Commit

Permalink
fix(theme): includes text to h1 tag for hero page (#4472)
Browse files Browse the repository at this point in the history
closes #4453
  • Loading branch information
yuyinws authored Jan 8, 2025
1 parent f6b822e commit bd896c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/theme-default/components/VPHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
<div class="main">
<slot name="home-hero-info-before" />
<slot name="home-hero-info">
<h1 v-if="name" class="name">
<span v-html="name" class="clip"></span>
<h1>
<span v-if="name" v-html="name" class="name clip"></span>
<span v-if="text" v-html="text" class="text"></span>
</h1>
<p v-if="text" v-html="text" class="text"></p>
<p v-if="tagline" v-html="tagline" class="tagline"></p>
</slot>
<slot name="home-hero-info-after" />
Expand Down Expand Up @@ -127,6 +127,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
.name,
.text {
display: inline-block;
max-width: 392px;
letter-spacing: -0.4px;
line-height: 40px;
Expand Down

0 comments on commit bd896c6

Please sign in to comment.