From d7e225473bd072119c3ce76317db2b723be74f81 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:28:27 +0530 Subject: [PATCH] feat(theme): allow customizing default theme's 404 page closes #2715 --- src/client/theme-default/NotFound.vue | 23 ++++++++++----- types/default-theme.d.ts | 42 +++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 7 deletions(-) diff --git a/src/client/theme-default/NotFound.vue b/src/client/theme-default/NotFound.vue index 2c70934cc3ca..e909bbc90515 100644 --- a/src/client/theme-default/NotFound.vue +++ b/src/client/theme-default/NotFound.vue @@ -4,7 +4,7 @@ import { withBase } from 'vitepress' import { useData } from './composables/data' import { useLangs } from './composables/langs' -const { site } = useData() +const { site, theme } = useData() const { localeLinks } = useLangs({ removeCurrent: false }) const root = ref('/') @@ -22,16 +22,23 @@ onMounted(() => {