diff --git a/.vitepress/theme/components/MirrorSite.vue b/.vitepress/theme/components/MirrorSite.vue new file mode 100644 index 00000000..f4100b75 --- /dev/null +++ b/.vitepress/theme/components/MirrorSite.vue @@ -0,0 +1,127 @@ + + + + + + + diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 6f6a4383..574b644d 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -3,6 +3,7 @@ import Theme from 'vitepress/theme' import { useRoute } from 'vitepress' import './styles/var.css' import mediumZoom from 'medium-zoom' +import MirrorSite from './components/MirrorSite.vue' import SponsorsAside from './components/SponsorsAside.vue' import HomePreview from './components/HomePreview.vue' import ZoomImg from './components/ZoomImg.vue' @@ -11,6 +12,7 @@ export default { ...Theme, Layout() { return h(Theme.Layout, null, { + 'layout-top': () => h(MirrorSite), 'home-features-after': () => h(HomePreview), 'aside-bottom': () => h(SponsorsAside), })