simon-einzinger.de/docs/.vitepress/theme/index.ts
2025-01-24 19:05:29 +01:00

23 lines
545 B
TypeScript

// https://vitepress.dev/guide/custom-theme
import { Theme } from "vitepress";
import DefaultLayout from "./layout/Layout.vue";
import BlogLayout from "./layout/BlogLayout.vue";
import type { Theme } from "vitepress";
import "./style.css";
import BlogIndex from "./components/BlogIndex.vue";
// @ts-ignore
const components = [BlogIndex];
const theme: Theme = {
Layout: DefaultLayout,
enhanceApp({ app, router, siteData }) {
app.component("BlogIndex", BlogIndex);
},
layouts: {
blog: BlogLayout,
},
};
export default theme;