No description
Find a file
2026-02-18 18:10:54 +01:00
.github/workflows Initial commit 2026-02-09 23:01:53 +01:00
src feat(plugins): comments as community plugin 2026-02-09 23:19:10 +01:00
test feat(plugins): comments as community plugin 2026-02-09 23:19:10 +01:00
.eslintrc.json Initial commit 2026-02-09 23:01:53 +01:00
.gitignore Initial commit 2026-02-09 23:01:53 +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: update @quartz-community/types to v0.2.1 2026-02-13 22:57:19 +01:00
package.json feat: add optionSchema for TUI enum selection 2026-02-18 18:10:54 +01:00
README.md docs: add plugin README 2026-02-14 02:13:01 +01:00
tsconfig.json Migrate types to use @quartz-community/types exports 2026-02-13 13:18:43 +01:00
tsup.config.ts fix: standardize inline script transpilation in tsup config 2026-02-14 01:11:33 +01: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

// quartz.layout.ts
import * as Plugin from "./.quartz/plugins";

// Add to your layout
Plugin.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