Skip to content

评论系统

giscus

giscus 是利用 GitHub Discussions 实现的评论系统,让访客借助 GitHub 在你的网站上留下评论和反应,可以去官网查看

配置

这里建议将giscus部署于博客仓库上,完成设置后,需要配置以下参数

ts
// config.mts
export default defineConfigWithTheme<ThemeConfig>({
  // ...
  themeConfig: {
    // ...
    comment: {
      repo: "xxxx", 
      repoId: "xxxx", 
      categoryId: "xxxx", 
      reactionsEnabled: "1", 
    },
  }
})

repo

仓库地址

repoId

仓库id

categoryId

分类id

reactionsEnabled

启用主帖子上的反应

提示

当前仅提供了四个参数配置,实际上还有更多的参数,如果在使用中需要,会在后期版本中逐步开放

夜茶 2020 ~ 2026