Skip to content

Commit a49377c

Browse files
authored
Merge pull request #31 from devwqc/feat/giscus
[feat] giscus 댓글 추가
2 parents 46af781 + 5beb3d0 commit a49377c

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

src/components/PostComments.astro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
3+
---
4+
5+
<section class="giscus mx-auto w-full"></section>
6+
7+
<script
8+
src="https://giscus.app/client.js"
9+
data-repo="devwqc/devwqc.github.io"
10+
data-repo-id="R_kgDOM5MFPQ"
11+
data-category="Blog Posts Comments"
12+
data-category-id="DIC_kwDOM5MFPc4Ci-uX"
13+
data-mapping="url"
14+
data-strict="0"
15+
data-reactions-enabled="1"
16+
data-emit-metadata="0"
17+
data-input-position="bottom"
18+
data-theme="light"
19+
data-lang="ko"
20+
crossorigin="anonymous"
21+
async></script>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import FormattedDate from '@/components/FormattedDate.astro';
33
import MarkDown from '@/components/Markdown.astro';
4+
import PostComments from '@/components/PostComments.astro';
45
import PageLayout from '@/layouts/PageLayout.astro';
56
import { getCollection, type CollectionEntry } from 'astro:content';
67
@@ -41,9 +42,11 @@ const { Content } = await post.render();
4142
<MarkDown>
4243
<Content />
4344
</MarkDown>
44-
<footer>
45+
<footer class="pb-10">
46+
<p>Issue on GitHub</p>
4547
<p>방문해 주셔서 감사합니다.</p>
4648
<p>오탈자, 잘못된 정보에 대해 말씀해 주시면 감사히 받겠습니다.</p>
4749
</footer>
50+
<PostComments />
4851
</article>
4952
</PageLayout>

0 commit comments

Comments
 (0)