博客 Giscus 评论引擎

本页内容

该模块为博客模块提供 Giscus 评论引擎支持,其基于 GitHub 讨论实现。

Modulegithub.com/hbstack/blog/modules/giscus
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

站点配置

ParameterTypeDefaultDescription
repostring-GitHub 仓库名称。
repo_idstring-GitHub 仓库 ID。
category_idstring-GitHub 仓库讨论分类 ID。

详情请参阅如何配置 GiscusGiscus 参数

params.toml

1[hb]
2  [hb.blog]
3    [hb.blog.giscus]
4      category_id = 'XXXXXXXXXXXXXXXXXXXX'
5      repo = 'user/site'
6      repo_id = 'XXXXXXXXXXXX'

params.yaml

1hb:
2  blog:
3    giscus:
4      category_id: XXXXXXXXXXXXXXXXXXXX
5      repo: user/site
6      repo_id: XXXXXXXXXXXX

params.json

 1{
 2   "hb": {
 3      "blog": {
 4         "giscus": {
 5            "category_id": "XXXXXXXXXXXXXXXXXXXX",
 6            "repo": "user/site",
 7            "repo_id": "XXXXXXXXXXXX"
 8         }
 9      }
10   }
11}