Skip to content

Commit

Permalink
giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
namachan10777 committed Jun 15, 2024
1 parent 4c8a815 commit bca7a5c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/composite/giscus.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script
is:inline
src="https://giscus.app/client.js"
data-repo="namachan10777/namachan10777.dev"
data-repo-id="MDEwOlJlcG9zaXRvcnkxMTEzOTQ4NzE="
data-category="Q&A"
data-category-id="DIC_kwDOBqPAN84CgHHl"
data-mapping="og:title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="1"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="ja"
data-loading="lazy"
crossorigin="anonymous"
async></script>
2 changes: 2 additions & 0 deletions src/pages/post/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Picture from "@components/mdx/image.astro";
import { PAGE_SIZE, renderDate } from "@lib/util";
import Pre from "@components/mdx/pre.astro";
import Tags from "@components/composite/tags.astro";
import Giscus from "@components/composite/giscus.astro";
export const getStaticPaths = (async () => {
const collection = await getCollection("post");
Expand Down Expand Up @@ -102,6 +103,7 @@ const pageIndex =
ol: OrderedList,
}}
/>
<Giscus />
</Base>

<style>
Expand Down

0 comments on commit bca7a5c

Please sign in to comment.