feat: add giscus (unfinished)

This commit is contained in:
saicaca committed 2024-03-14 02:15:43 +08:00
1 parent df30781cdc
commit 361d28797e
4 files changed
+56

No files matched your search

+4
View File
@@ -11,6 +11,7 @@ import License from "@components/misc/License.astro";
import {licenseConfig} from "src/config";
import Markdown from "@components/misc/Markdown.astro";
import path from "path";
import Comment from "@components/Comment.astro";
export async function getStaticPaths() {
const blogEntries = await getCollection('posts', ({ data }) => {
@@ -109,6 +110,9 @@ const { remarkPluginFrontmatter } = await entry.render();
</a>
</div>
<!-- Comment -->
<Comment postId={entry.slug}></Comment>
</MainGridLayout>
<style is:global>