From 823d5e2689649a91150c2fa3e6bc4e54ab43e20a Mon Sep 17 00:00:00 2001 From: enneaa Date: Fri, 14 Mar 2025 18:14:34 +0800 Subject: [PATCH] Update quartz.layout.ts --- quartz.layout.ts | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/quartz.layout.ts b/quartz.layout.ts index 6f27f6954..687ed8b63 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -41,24 +41,26 @@ export const defaultContentPageLayout: PageLayout = {    Component.Backlinks(),      Component.Graph(),        ],  - 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", // corresponds to quartz/static/giscus/ - lightTheme: "light-theme", // corresponds to light-theme.css in quartz/static/giscus/ - darkTheme: "dark-theme", // corresponds to dark-theme.css quartz/static/giscus/ - } - }), -], + 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", // corresponds to quartz/static/giscus/ + lightTheme: "light", // corresponds to light-theme.css in quartz/static/giscus/ + darkTheme: "dark", // corresponds to dark-theme.css quartz/static/giscus/ + mapping: "pathname", + inputPosition: "top", + } + }), + ], } // components for pages that display lists of pages (e.g. tags or folders)