該模塊爲博客模塊提供 Giscus 評論引擎支持,其基於 GitHub 討論實現。
Module | github.com/hbstack/docs/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.docs]
3 [hb.docs.giscus]
4 category_id = 'XXXXXXXXXXXXXXXXXXXX'
5 repo = 'user/site'
6 repo_id = 'XXXXXXXXXXXX'
params.yaml
1hb:
2 docs:
3 giscus:
4 category_id: XXXXXXXXXXXXXXXXXXXX
5 repo: user/site
6 repo_id: XXXXXXXXXXXX
params.json
1{
2 "hb": {
3 "docs": {
4 "giscus": {
5 "category_id": "XXXXXXXXXXXXXXXXXXXX",
6 "repo": "user/site",
7 "repo_id": "XXXXXXXXXXXX"
8 }
9 }
10 }
11}