博客 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}