Skip to content

Commit c936e3f

Browse files
committed
feat: comment on posts
1 parent d690d55 commit c936e3f

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

src/components/BlogPost.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ const { remarkPluginFrontmatter } = await render(post);
4040
class="prose dark:prose-invert my-8 max-w-none text-gray-600 dark:text-gray-400"
4141
>
4242
If you have any questions or comments, or you would like to point out any
43-
errors in any of the blog posts, please reach out to me at <a
44-
href="mailto:milanherke@protonmail.com">milanherke@protonmail.com</a
45-
>.
43+
errors in any of the blog posts, please leave a comment.
4644
</div>
4745
</div>

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const isProd = import.meta.env.PROD;
2929
)
3030
}
3131
</head>
32-
<body class="mx-auto max-w-3xl bg-gray-50 px-4 dark:bg-[#0a0a0a]">
32+
<body class="mx-auto max-w-3xl bg-gray-50 p-4 dark:bg-[#0a0a0a]">
3333
<slot />
3434
</body>
3535
</html>

src/layouts/PostLayout.astro

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,20 @@ const { post } = Astro.props;
2121
<BlogPost post={post}>
2222
<slot />
2323
</BlogPost>
24+
<script
25+
src="https://giscus.app/client.js"
26+
data-repo="milan-codes/milan-codes.github.io"
27+
data-repo-id="R_kgDOI5_00w"
28+
data-category="Posts"
29+
data-category-id="DIC_kwDOI5_0084Csa0O"
30+
data-mapping="pathname"
31+
data-strict="0"
32+
data-reactions-enabled="1"
33+
data-emit-metadata="0"
34+
data-input-position="bottom"
35+
data-theme="preferred_color_scheme"
36+
data-lang="en"
37+
data-loading="lazy"
38+
crossorigin="anonymous"
39+
async></script>
2440
</BaseLayout>

0 commit comments

Comments
 (0)