Skip to content

Commit

Permalink
fix: use useData() instead of $site (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN authored Aug 20, 2021
1 parent 9245226 commit 1e64773
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/theme-default/NotFound.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
<div class="theme">
<h1>404</h1>
<blockquote>{{ getMsg() }}</blockquote>
<a :href="$site.base" aria-label="go to home">Take me home.</a>
<a :href="site.base" aria-label="go to home">Take me home.</a>
</div>
</template>

<script setup lang="ts">
import { useData } from 'vitepress'
const { site } = useData()
const msgs = [
`There's nothing here.`,
`How did we get here?`,
Expand Down

0 comments on commit 1e64773

Please sign in to comment.