From d6702bb8d0600d36210112b247cd91a063581204 Mon Sep 17 00:00:00 2001 From: ennea Date: Thu, 13 Mar 2025 00:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quartz.layout.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/quartz.layout.ts b/quartz.layout.ts index e26d84b56..6ac0ebf13 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -45,6 +45,25 @@ export const defaultContentPageLayout: PageLayout = { Component.DesktopOnly(Component.TableOfContents()),  Component.Backlinks(), ], + afterBody: [   + Component.Comments({   + provider: 'giscus', + options: {  + // from data-repo  + repo: 'enneaa/giscus',   + // from data-repo-id  + repoId: 'R_kgDOOHb7aw',   + // from data-category   + category: 'Announcements',   + // from data-category-id   + categoryId: 'DIC_kwDOOHb7a84Cn6os',     + themeUrl: "https://enneaaa.netlify.app/static/giscus",  + lightTheme: "light-theme", + darkTheme: "dark-theme", + inputPosition: "top", + } + }), + ], } // components for pages that display lists of pages (e.g. tags or folders)