No description
Find a file
2026-05-24 17:32:44 +02:00
.github/workflows build: bundle dependencies and ship pre-built dist 2026-04-27 21:37:31 +02:00
dist build: bundle dependencies and ship pre-built dist 2026-04-27 21:37:31 +02:00
src fix: only suppress comments on explicit false / "false" override 2026-04-16 15:43:08 +02:00
test fix: only suppress comments on explicit false / "false" override 2026-04-16 15:43:08 +02:00
types chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.eslintrc.json chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.gitignore chore: commit dist/ and remove prepare script 2026-03-14 21:57:30 +01:00
.prettierignore chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.prettierrc Initial commit 2026-02-09 23:01:53 +01:00
CHANGELOG.md Initial commit 2026-02-09 23:01:53 +01:00
LICENSE Initial commit 2026-02-09 23:01:53 +01:00
package-lock.json chore: regenerate package-lock.json 2026-05-24 17:32:44 +02:00
package.json chore: remove vestigial @jackyzha0/quartz peerDependency 2026-05-24 16:23:42 +02:00
README.md docs: update README for v5 unified config system 2026-02-25 16:07:11 +01:00
tsconfig.build.json fix: use separate tsconfig for DTS build to avoid vitest dependency 2026-03-22 13:12:01 +01:00
tsconfig.json chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
tsup.config.ts build: bundle dependencies and ship pre-built dist 2026-04-27 21:37:31 +02:00
vitest.config.ts Initial commit 2026-02-09 23:01:53 +01:00

@quartz-community/comments

Adds a comment section to pages using Giscus (GitHub Discussions-based).

Installation

npx quartz plugin add github:quartz-community/comments

Usage

plugins:
  - source: github:quartz-community/comments
    enabled: true
    options:
      provider: giscus
      options: {}
    layout:
      position: afterBody
      priority: 10

For advanced use cases, you can override in TypeScript:

import * as ExternalPlugin from "./.quartz/plugins";

ExternalPlugin.Comments({
  provider: "giscus",
  options: {
    repo: "your-repo",
    repoId: "your-repo-id",
    category: "your-category",
    categoryId: "your-category-id",
  },
});

Configuration

Option Type Default Description
provider "giscus" - The comment provider to use.
options.repo string - The GitHub repository to use for comments.
options.repoId string - The ID of the GitHub repository.
options.category string - The GitHub Discussions category to use.
options.categoryId string - The ID of the GitHub Discussions category.
options.themeUrl string undefined Custom theme URL for Giscus.
options.lightTheme string "light" The light theme for Giscus.
options.darkTheme string "dark" The dark theme for Giscus.
options.mapping string "url" The mapping between pages and discussions.
options.strict boolean true Whether to use strict matching for discussions.
options.reactionsEnabled boolean true Whether to enable reactions for comments.
options.inputPosition "top" | "bottom" "bottom" The position of the comment input box.
options.lang string "en" The language for Giscus.

Documentation

See the Quartz documentation for more information.

License

MIT