Skip to content

Commit 1e64773

Browse files
authored
fix: use useData() instead of $site (#365)
1 parent 9245226 commit 1e64773

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/theme-default/NotFound.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
<div class="theme">
33
<h1>404</h1>
44
<blockquote>{{ getMsg() }}</blockquote>
5-
<a :href="$site.base" aria-label="go to home">Take me home.</a>
5+
<a :href="site.base" aria-label="go to home">Take me home.</a>
66
</div>
77
</template>
88

99
<script setup lang="ts">
10+
import { useData } from 'vitepress'
11+
12+
const { site } = useData()
1013
const msgs = [
1114
`There's nothing here.`,
1215
`How did we get here?`,

0 commit comments

Comments
 (0)