Skip to content

Commit

Permalink
✨ add comments in blog
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjn committed Jul 28, 2024
1 parent e431a4d commit 00ac48a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/pages/posts/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Image } from "astro:assets";
export type Props = CollectionEntry<"posts">;
const { render, data } = Astro.props;
const { render, data, slug } = Astro.props;
const { Content, remarkPluginFrontmatter } = await render();
---

Expand All @@ -45,6 +45,17 @@ const { Content, remarkPluginFrontmatter } = await render();
}
<div id="content">
<Content />

<h2>Comments</h2>
<script
is:inline
src="https://utteranc.es/client.js"
repo="dvjn/dvjn.github.io"
issue-term={`💬 Comments | /posts/${slug}`}
label="💬 comments"
theme="photon-dark"
crossorigin="anonymous"
async></script>
</div>
</BaseLayout>

Expand Down

0 comments on commit 00ac48a

Please sign in to comment.