Skip to content

Commit ec7643d

Browse files
authored
feat(theme): allow using html text in VPHero (#2635)
1 parent f52a262 commit ec7643d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/theme-default/components/VPHero.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
2727
<div class="main">
2828
<slot name="home-hero-info">
2929
<h1 v-if="name" class="name">
30-
<span class="clip">{{ name }}</span>
30+
<span v-html="name" class="clip"></span>
3131
</h1>
32-
<p v-if="text" class="text">{{ text }}</p>
33-
<p v-if="tagline" class="tagline">{{ tagline }}</p>
32+
<p v-if="text" v-html="text" class="text"></p>
33+
<p v-if="tagline" v-html="tagline" class="tagline"></p>
3434
</slot>
3535

3636
<div v-if="actions" class="actions">

0 commit comments

Comments
 (0)