Skip to content

Commit 412e6d6

Browse files
committed
Add Giscuss comments
1 parent 218492c commit 412e6d6

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

src/components/Comments.astro

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
---
3+
<script
4+
is:inline
5+
src="https://giscus.app/client.js"
6+
data-repo="shwetank-dev/shwetank-dev.github.io"
7+
data-repo-id="R_kgDORBPzag"
8+
data-category="Announcements"
9+
data-category-id="DIC_kwDORBPzas4C8WFD"
10+
data-mapping="pathname"
11+
data-strict="0"
12+
data-reactions-enabled="1"
13+
data-emit-metadata="0"
14+
data-input-position="bottom"
15+
data-theme="dark_dimmed"
16+
data-lang="en"
17+
crossorigin="anonymous"
18+
async
19+
></script>

src/layouts/BlogPostLayout.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import BaseLayout from "./BaseLayout.astro";
33
import TagList from "../components/TagList.astro";
44
import TableOfContents from "../components/TableOfContents.astro";
5+
import Comments from "../components/Comments.astro";
56
import { formatDate } from "../utils/date.ts";
67
78
interface Props {
@@ -28,6 +29,8 @@ const { title, date, tags, headings } = Astro.props;
2829
<div class="blog-body">
2930
<slot />
3031
</div>
32+
<hr />
33+
<Comments />
3134
</div>
3235
</div>
3336
</BaseLayout>

0 commit comments

Comments
 (0)