项目文件夹

文件
wehub-resource-sync 1443d3fdf9
Ruff Format Check / Ruff Format & Lint (push) Failing after 7m39s
Deploy VitePress site to Pages / build (push) Failing after 9m11s
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:26 +08:00

16 行
457 B
TypeScript

import { h } from 'vue'
import DefaultTheme from 'vitepress/theme'
import YuxiHome from './components/YuxiHome.vue'
import './custom.css'
export default {
extends: DefaultTheme,
// 在首页(layout: home)的最顶部注入完全自定义的官网首页,
// 同时保留 VitePress 的顶部导航、搜索、暗黑切换与页脚。
Layout() {
return h(DefaultTheme.Layout, null, {
'home-hero-before': () => h(YuxiHome)
})
}
}