Adds a comment section to the bottom of each page, backed by Giscus (GitHub Discussions). Giscus is currently the only provider.
Note
For information on how to add, remove or configure plugins, see the Configuration page.
See Comments for setup instructions.
Configuration
This plugin accepts the following configuration options:
provider: The comment provider to use. Defaults togiscus, the only supported provider.options: Provider-specific options.repo,repoId,categoryandcategoryIdare required; get them from the Giscus site.repo: The GitHub repository to use for comments (owner/name).repoId: The ID of the GitHub repository.category: The discussion category to use.categoryId: The ID of the discussion category.lang: The language for the comment system. Defaults toen.themeUrl: URL to a folder with custom themes. Defaults tohttps://<baseUrl>/static/giscus.lightTheme: Filename for the light theme CSS file. Defaults tolight.darkTheme: Filename for the dark theme CSS file. Defaults todark.mapping: How to map pages to discussions (url,title,og:title,specific,number,pathname). Defaults tourl.strict: Use strict title matching. Defaults totrue.reactionsEnabled: Whether to enable reactions for the main post. Defaults totrue.inputPosition: Where to put the comment input box relative to the comments (toporbottom). Defaults tobottom.
Set comments: false in a page’s frontmatter to hide the comment section on that page.
Default options
The plugin is disabled by default. The default configuration contains:
- source: "@quartz-community/comments"
enabled: false
options:
provider: giscus
options: {}
layout:
position: afterBody
priority: 10To enable it, set enabled: true and fill in the required options, for example:
- source: "@quartz-community/comments"
enabled: true
options:
provider: giscus
options:
repo: jackyzha0/quartz
repoId: MDEwOlJlcG9zaXRvcnkzODcyMTMyMDg
category: Announcements
categoryId: DIC_kwDOFxRnmM4B-Xg6
layout:
position: afterBody
priority: 10API
- Category: Component
- Function name:
ExternalPlugin.Comments(). - Source:
quartz-community/comments - Install:
npx quartz plugin add @quartz-community/comments