Added comments
This commit is contained in:
parent
9829c0e5fa
commit
2a86fd34f6
32
src/components/Comments.astro
Normal file
32
src/components/Comments.astro
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
const category = "Announcements";
|
||||
const categoryId = "DIC_kwDOJfmscs4CdNE6";
|
||||
const crossorigin = "anonymous";
|
||||
const inputPosition = "bottom";
|
||||
const lang = "en";
|
||||
const mapping = "title";
|
||||
const metadata = "0";
|
||||
const reactions = "1";
|
||||
const repo = "valentineus/valentineus.github.io";
|
||||
const repoId = "R_kgDOJfmscg";
|
||||
const strict = "1";
|
||||
const theme = "transparent_dark";
|
||||
---
|
||||
|
||||
<script
|
||||
defer
|
||||
src="https://giscus.app/client.js"
|
||||
data-category-id={categoryId}
|
||||
data-category={category}
|
||||
data-emit-metadata={metadata}
|
||||
data-input-position={inputPosition}
|
||||
data-lang={lang}
|
||||
data-mapping={mapping}
|
||||
data-reactions-enabled={reactions}
|
||||
data-repo-id={repoId}
|
||||
data-repo={repo}
|
||||
data-strict={strict}
|
||||
data-theme={theme}
|
||||
crossorigin={crossorigin}
|
||||
>
|
||||
</script>
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
import { type CollectionEntry, getCollection } from "astro:content";
|
||||
import Comments from "../../components/Comments.astro";
|
||||
import Layout from "../../layouts/PageLayout.astro";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
@ -34,4 +35,5 @@ const { Content, remarkPluginFrontmatter } = await post.render();
|
||||
</p>
|
||||
</div>
|
||||
<Content />
|
||||
<Comments />
|
||||
</Layout>
|
||||
|
Loading…
Reference in New Issue
Block a user