posts setup

This commit is contained in:
taskylizard
2023-12-31 06:57:10 +00:00
parent 8f457fa166
commit 5ae23bea33
14 changed files with 528 additions and 229 deletions

View File

@@ -1,6 +1,7 @@
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";
@@ -8,7 +9,8 @@ import "uno.css";
export default {
extends: DefaultTheme,
Layout,
enhanceApp({ router }) {
enhanceApp({ router, app }) {
app.component("Post", Post);
loadProgress(router);
},
} satisfies Theme;