Comment System
Comment system for pages at the bottom
Giscus Comment System#
Giscus ↗ is a comment system powered by GitHub Discussions. It requires:
- The repository to have Discussions ↗ enabled.
- The Giscus GitHub App ↗ to be installed on the repository.
Configuration#
The Giscus widget reads its configuration from src/site.config.ts:
src/site.config.ts
export const integ: IntegrationUserConfig = {
// ...
giscus: {
enable: true,
repo: 'ZhongYic00/zhongyic00.github.io',
repoId: '...', // Get from giscus.app
category: 'Announcements',
categoryId: '...', // Get from giscus.app
mapping: 'pathname',
inputPosition: 'bottom',
theme: 'preferred_color_scheme',
lang: 'zh-CN'
}
}tsVisit giscus.app ↗ to find your repoId and categoryId.