mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Update quartz.layout.ts
启用Giscus评论系统
This commit is contained in:
parent
dde4656b6f
commit
04dd839cce
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user