Skip to content

Commit 7d5143d

Browse files
author
themycode
committed
fix
1 parent 5412e50 commit 7d5143d

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.vitepress/theme/Layout.vue

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
<template>
2-
<DefaultLayout />
3-
<Giscus
4-
v-if="showComments"
5-
repo="themycode/themycode.github.io"
6-
repo-id="MDEwOlJlcG9zaXRvcnkxNjQ1ODkxOTU="
7-
category="Announcements"
8-
category-id="DIC_kwDOCc9ui84C5HGB"
9-
mapping="pathname"
10-
strict="0"
11-
reactions-enabled="1"
12-
emit-metadata="0"
13-
input-position="bottom"
14-
theme="preferred_color_scheme"
15-
lang="zh-CN"
16-
crossorigin="anonymous"
17-
style="max-width: 900px; margin: 0 auto; padding: 20px"
18-
/>
2+
<Layout>
3+
<template #doc-after>
4+
<Giscus
5+
v-if="showComments"
6+
repo="themycode/themycode.github.io"
7+
repo-id="MDEwOlJlcG9zaXRvcnkxNjQ1ODkxOTU="
8+
category="Announcements"
9+
category-id="DIC_kwDOCc9ui84C5HGB"
10+
mapping="pathname"
11+
strict="0"
12+
reactions-enabled="1"
13+
emit-metadata="0"
14+
input-position="bottom"
15+
theme="preferred_color_scheme"
16+
lang="zh-CN"
17+
crossorigin="anonymous"
18+
style="max-width: 900px; margin: 0 auto; padding: 20px"
19+
/>
20+
</template>
21+
</Layout>
1922
</template>
2023

2124
<script setup lang="ts">
@@ -24,7 +27,6 @@ import { useRoute } from 'vitepress'
2427
import { useData } from 'vitepress'
2528
import DefaultTheme from 'vitepress/theme'
2629
import Giscus from '@giscus/vue'
27-
import DefaultLayout from 'vitepress/theme'
2830
const { Layout } = DefaultTheme
2931
3032
const route = useRoute()

0 commit comments

Comments
 (0)