Skip to content

Commit

Permalink
chore: 添加指向 GitHub Discussions 的评论区提示 (#75)
Browse files Browse the repository at this point in the history
close #67
  • Loading branch information
Zh40Le1ZOOB authored Jun 1, 2024
1 parent bac846c commit 6dbfc0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vitepress/theme/comment.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script setup>
import DefaultTheme from 'vitepress/theme'
const { Layout } = DefaultTheme
</script>

<template>
<Layout>
<template #doc-after>
<p style="text-align: center; margin-top: 40px;">本站不提供评论服务,如有评论需求,请移步至 <a style="color: #a8b1ff;" href="https://github.com/transky-book/transky/discussions/categories/%E8%AF%84%E8%AE%BA%E5%8C%BA">GitHub Discussions</a>。</p>
</template>
</Layout>
</template>
2 changes: 2 additions & 0 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -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());
},
Expand Down

0 comments on commit 6dbfc0f

Please sign in to comment.