File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
.vitepress/theme/components/Base Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- defineProps <{
2
+ import { useData } from " vitepress" ;
3
+ import { computed } from " vue" ;
4
+
5
+ const { link } = defineProps <{
3
6
title: string ;
4
7
link: string ;
5
8
}>();
9
+
10
+ const data = useData ();
11
+
12
+ const normalizedLink = computed (() => {
13
+ return ` ${data .site .value .base }${link } ` ;
14
+ });
6
15
</script >
7
16
8
17
<template >
9
18
<a
10
- :href =" link "
19
+ :href =" normalizedLink "
11
20
class =" h-full block max-w-sm p-4 bg-gray-100 rounded-lg hover:bg-gray-200 dark:bg-zinc-800 dark:hover:bg-zinc-700 no-underline"
12
21
style =" text-decoration : none "
13
22
>
Original file line number Diff line number Diff line change @@ -23,22 +23,22 @@ createApp(App).use(veProgress);
23
23
24
24
<div class =" grid grid-cols-1 md:grid-cols-2 gap-4 mt-10 " >
25
25
<div >
26
- <CardLink link="/ guide/installation.html" title="Installation options">
26
+ <CardLink link="guide/installation.html" title="Installation options">
27
27
Learn what possibilities you have to include the component in your project
28
28
</CardLink>
29
29
</div >
30
30
<div >
31
- <CardLink class="fill" link="/ guide/options/" title="Configuration">
31
+ <CardLink class="fill" link="guide/options/" title="Configuration">
32
32
Explore wide range of configuration options through the properties and slots
33
33
</CardLink>
34
34
</div >
35
35
<div >
36
- <CardLink link="/ guide/compatibility.html" title="Compatibility">
36
+ <CardLink link="guide/compatibility.html" title="Compatibility">
37
37
Check, if the plugin meets your compatibility requirements
38
38
</CardLink>
39
39
</div >
40
40
<div >
41
- <CardLink class="fill" link="/ guide/contribution.html" title="Contribution">
41
+ <CardLink class="fill" link="guide/contribution.html" title="Contribution">
42
42
Any help is very much appreciated
43
43
</CardLink>
44
44
</div >
You can’t perform that action at this time.
0 commit comments