成为我们的资助者或赞助商,以支持我们的工作。
该模块为博客模块提供 Giscus 评论引擎支持,其基于 GitHub 讨论实现。
| Module | github.com/hbstack/blog/modules/giscus | 
|---|---|
| Repository | ⭐ Please consider giving a star if your like it. | 
| Stars | |
| Version | |
| Used by | |
| Requirements | |
| License | |
| Usage | See how to use modules. | 
| Parameter | Type | Default | Description | 
|---|---|---|---|
| repo | string | - | GitHub 仓库名称。 | 
| repo_id | string | - | GitHub 仓库 ID。 | 
| category_id | string | - | GitHub 仓库讨论分类 ID。 | 
详情请参阅如何配置 Giscus 和 Giscus 参数。
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}