fix: use useData() instead of $site (#365)

pull/374/head
CHOYSEN 3 years ago committed by GitHub
parent 9245226b16
commit 1e64773933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,11 +2,14 @@
<div class="theme"> <div class="theme">
<h1>404</h1> <h1>404</h1>
<blockquote>{{ getMsg() }}</blockquote> <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> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { useData } from 'vitepress'
const { site } = useData()
const msgs = [ const msgs = [
`There's nothing here.`, `There's nothing here.`,
`How did we get here?`, `How did we get here?`,

Loading…
Cancel
Save