Skip to content

Commit 52a82b4

Browse files
author
chenliangzihao
committed
feat: add Giscus comment system and style comment section padding
1 parent 80a8cf8 commit 52a82b4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/pages/posts/[...slug].astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,21 @@ const jsonLd = {
167167
}
168168
</a>
169169
</div>
170+
171+
<script
172+
src="https://giscus.app/client.js"
173+
data-repo="KiritoKing/notion-astro-rev"
174+
data-repo-id="R_kgDONmCW3w"
175+
data-category="Announcements"
176+
data-category-id="DIC_kwDONmCW384CpTzw"
177+
data-mapping="pathname"
178+
data-strict="0"
179+
data-reactions-enabled="1"
180+
data-emit-metadata="0"
181+
data-input-position="top"
182+
data-theme="preferred_color_scheme"
183+
data-lang="zh-CN"
184+
data-loading="lazy"
185+
crossorigin="anonymous"
186+
async></script>
170187
</MainGridLayout>

src/styles/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,7 @@
174174
.notion-callout > .notion-callout-icon {
175175
margin-right: 0.8rem;
176176
}
177+
178+
.giscus {
179+
@apply pt-4 lg:pt-6;
180+
}

0 commit comments

Comments
 (0)