Update quartz.layout.ts

This commit is contained in:
enneaa 2025-03-14 18:14:34 +08:00 committed by GitHub
parent d28b2566f6
commit 823d5e2689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,24 +41,26 @@ export const defaultContentPageLayout: PageLayout = {   
Component.Backlinks(),      Component.Backlinks(),     
Component.Graph(),        Component.Graph(),       
],  ], 
afterBody: [ afterBody: [
Component.Comments({ Component.Comments({
provider: 'giscus', provider: 'giscus',
options: { options: {
// from data-repo // from data-repo
repo: 'enneaa/giscus', repo: 'enneaa/giscus',
// from data-repo-id // from data-repo-id
repoId: 'R_kgDOOHb7aw', repoId: 'R_kgDOOHb7aw',
// from data-category // from data-category
category: 'Announcements', category: 'Announcements',
// from data-category-id // from data-category-id
categoryId: 'DIC_kwDOOHb7a84Cn6os', categoryId: 'DIC_kwDOOHb7a84Cn6os',
themeUrl: "https://enneaaa.netlify.app/static/giscus", // corresponds to quartz/static/giscus/ themeUrl: "https://enneaaa.netlify.app/static/giscus", // corresponds to quartz/static/giscus/
lightTheme: "light-theme", // corresponds to light-theme.css in quartz/static/giscus/ lightTheme: "light", // corresponds to light-theme.css in quartz/static/giscus/
darkTheme: "dark-theme", // corresponds to dark-theme.css 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) // components for pages that display lists of pages (e.g. tags or folders)