Graphorall

Back

Comment System

Comment system for pages at the bottom

Giscus Comment System#

Giscus is a comment system powered by GitHub Discussions. It requires:

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'
  }
}
ts

Visit giscus.app to find your repoId and categoryId.