fix: use base in hero call to action

pull/718/head
Divyansh Singh 3 years ago
parent c9fe1611ea
commit a54ef34672

@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed } from 'vue' import { computed } from 'vue'
import { withBase } from 'vitepress'
const props = defineProps<{ const props = defineProps<{
tag?: string tag?: string
@ -30,7 +31,7 @@ const component = computed(() => {
:is="component" :is="component"
class="VPButton" class="VPButton"
:class="classes" :class="classes"
:href="href" :href="href ? withBase(href) : undefined"
:target="isExternal ? '_blank' : undefined" :target="isExternal ? '_blank' : undefined"
:rel="isExternal ? 'noopener noreferrer' : undefined" :rel="isExternal ? 'noopener noreferrer' : undefined"
> >

Loading…
Cancel
Save