Update quartz.layout.ts

启用Giscus评论系统
This commit is contained in:
wangzipai 2024-10-30 10:22:06 +08:00 committed by GitHub
parent dde4656b6f
commit 04dd839cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,33 @@ import * as Component from "./quartz/components"
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [],
afterBody: [],
afterBody: [
Component.Comments({
provider: 'giscus',
options: {
// from data-repo
repo: 'xxx',
// from data-repo-id
repoId: 'xxx',
// from data-category
category: 'Announcements',
// from data-category-id
categoryId: 'xxx',
// how to map pages -> discussions
// defaults to 'url'
mapping: "pathname",
// use strict title matching
// defaults to true
strict: false,
// whether to enable reactions for the main post
// defaults to true
reactionsEnabled: true,
// where to put the comment input box relative to the comments
// defaults to 'bottom'
inputPosition: "top",
}
}),
],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",