Skip to content

Commit 2e4536f

Browse files
committed
add blog comments
1 parent 169bcef commit 2e4536f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/components/Comments.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export default () => (
2+
<>
3+
<h2>Comments</h2>
4+
<script
5+
src="https://giscus.app/client.js"
6+
data-repo="apacheli/apacheli.github.io"
7+
data-repo-id="R_kgDOLt0Zpg"
8+
data-category="General"
9+
data-category-id="DIC_kwDOLt0Zps4CkjKo"
10+
data-mapping="title"
11+
data-strict="1"
12+
data-reactions-enabled="1"
13+
data-emit-metadata="1"
14+
data-input-position="top"
15+
data-theme="preferred_color_scheme"
16+
data-lang="en"
17+
data-loading="lazy"
18+
crossorigin="anonymous"
19+
async
20+
/>
21+
</>
22+
);

src/pages/blog/hello.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Comments from "@components/Comments"
2+
13
export const title = "Hello, World!"
24
export const description = "hello world"
35
export const date = "2024-11-22"
@@ -14,3 +16,5 @@ World so high, let me show
1416
And hear my declaration
1517

1618
"No more ties"
19+
20+
<Comments />

0 commit comments

Comments
 (0)