This commit is contained in:
Bozhidar 2024-05-17 21:50:28 +03:00
parent 13b0a23801
commit 62b99e83f7
2 changed files with 1 additions and 17 deletions

View file

@ -1,15 +0,0 @@
<script setup>
import { useData } from 'vitepress'
const { page } = useData()
</script>
<template>
<div v-if="page.isNotFound">
Custom 404 page!
</div>
<Content v-else />
</template>

View file

@ -2,7 +2,6 @@
import { h } from 'vue'
import DefaultTheme from 'vitepress/theme'
import './style.css'
import Clean from './Clean.vue'
/** @type {import('vitepress').Theme} */
export default {
@ -13,6 +12,6 @@ export default {
})
},
enhanceApp({ app, router, siteData }) {
app.component('clean', Clean)
}
}