FMHYedit/.vitepress/theme/index.ts

17 lines
409 B
TypeScript
Raw Permalink Normal View History

2024-01-25 16:32:45 +00:00
import { type Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import Layout from './Layout.vue'
import Post from './PostLayout.vue'
import { loadProgress } from './composables/nprogress'
import './style.css'
import 'uno.css'
2023-11-12 16:42:57 +00:00
export default {
extends: DefaultTheme,
2023-11-14 17:18:52 +00:00
Layout,
2023-12-31 06:57:10 +00:00
enhanceApp({ router, app }) {
2024-01-25 16:32:45 +00:00
app.component('Post', Post)
loadProgress(router)
}
} satisfies Theme