diff --git a/.vitepress/theme/comment.vue b/.vitepress/theme/comment.vue new file mode 100644 index 00000000..3aae5754 --- /dev/null +++ b/.vitepress/theme/comment.vue @@ -0,0 +1,13 @@ + + + diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index d55aec95..48159419 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -1,11 +1,13 @@ import { useRoute } from "vitepress"; import DefaultTheme from "vitepress/theme"; +import comment from "./comment.vue"; import imageViewer from "vitepress-plugin-image-viewer"; import "viewerjs/dist/viewer.min.css"; import "./indent.css"; export default { ...DefaultTheme, + Layout: comment, setup() { imageViewer(useRoute()); },