diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index ed38ecb3..091d91f9 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -807,7 +807,7 @@ enableEmoji = true
# Comment config
# 评论系统设置
[params.page.comment]
- enable = false
+ enable = true
# Artalk comment config (https://artalk.js.org/) since v0.2.13
# Artalk 评论系统设置 (https://artalk.js.org/) since v0.2.13
[params.page.comment.artalk]
@@ -927,6 +927,22 @@ enableEmoji = true
# It take effect when `params.page.lightgallery` is enabled
# 当 `params.page.lightgallery` 启用时生效
lightgallery = false
+ [params.page.comment.giscus]
+ enable = true
+ repo = "giscus/giscus"
+ repoId = "MDEwOlJlcG9zaXRvcnkzNTE5NTgwNTM="
+ category = ""
+ categoryId = "MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyNzk2NTc1"
+ mapping = "specific"
+ term = "Welcome to giscus!"
+ reactionsEnabled = "1"
+ emitMetadata = "1"
+ inputPosition = "top" # top, bottom
+ theme = "light"
+ lang = "en"
+ loading = "lazy"
+ nscript = "afterInteractive"
+ crossorigin = "anonymous"
# Third-party library config
# 第三方库配置
[params.page.library]
diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html
index 15a4ebbc..6be9bac5 100644
--- a/layouts/partials/single/comment.html
+++ b/layouts/partials/single/comment.html
@@ -208,7 +208,6 @@
{{- end -}}
- {{- /* Twikoo Comment System */ -}}
{{- /* Twikoo Comment System */ -}}
{{- $twikoo := $comment.twikoo | default dict -}}
{{- if $twikoo.enable -}}
@@ -232,6 +231,14 @@
Please enable JavaScript to view the comments powered by Twikoo.
{{- end -}}
+
+ {{- /* Giscus Comment System */ -}}
+ {{- $giscus := $comment.giscus | default dict -}}
+ {{- if $giscus.enable -}}
+ {{- with $giscus -}}
+
+ {{- end -}}
+ {{- end -}}
{{- end -}}