File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import Giscus from ' @giscus/vue'
3+
4+ const colorMode = useColorMode ()
5+ const theme = computed (() => colorMode .value === ' dark' ? ' dark' : ' light' )
6+ </script >
7+
8+ <template >
9+ <Giscus
10+ repo =" techwatching/techwatching.dev"
11+ repo-id =" R_kgDOGPrzmQ"
12+ category =" Announcements"
13+ category-id =" DIC_kwDOGPrzmc4B_fVQ"
14+ mapping =" pathname"
15+ strict =" 0"
16+ reactions-enabled =" 1"
17+ emit-metadata =" 0"
18+ input-position =" top"
19+ :theme =" theme"
20+ loading =" lazy"
21+ crossorigin =" anonymous"
22+ />
23+ </template >
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ if (post.value.image?.src) {
8686 <USeparator v-if =" surround?.length" />
8787
8888 <UContentSurround :surround =" surround" />
89+
90+ <GiscusComments />
8991 </UPageBody >
9092
9193 <template
You can’t perform that action at this time.
0 commit comments