summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-08-02 10:36:41 +0800
committerroninro <liumy.f@foxmail.com>2022-08-02 10:36:41 +0800
commit0072f3dac08dab7640cf5a3ae98c21e4ed3ca988 (patch)
treef1e502f7b0fe1728732e1bdae48937684e95393f
parent6e7ff3ae05c60e9483920031f20e591a7b77c7ee (diff)
giscus lang
-rw-r--r--exampleSite/config.toml18
-rw-r--r--layouts/partials/comments.html5
2 files changed, 13 insertions, 10 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index dfb70aa..dda1b63 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -74,7 +74,7 @@ custom_css = [] # ["css/custom.css"] Add your file to assets folder [assets/cs
[params.sidebar]
enable = true
avatar = "/img/home-bg.jpg"
-bio = "John Doe's personal website"
+bio = "a personal website"
[params.social]
rss_enable = true
@@ -95,10 +95,12 @@ url = "https://gohugo.io"
# See https://giscus.app/
[params.giscus]
-enable = false
-repo = ""
-repo_id = ""
-category = ""
-category_id = ""
-input_position = ""
-theme = "light"
+enable = true
+repo = "roninro/hugo-theme-puppet"
+repo_id = "R_kgDOHuvyhw"
+category = "General"
+category_id = "DIC_kwDOHuvyh84CQjDo"
+input_position = "top"
+theme = "light_tritanopia"
+lang = "en"
+
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index b2d78e1..cf4ccab 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -18,8 +18,9 @@
data-emit-metadata="0"
data-input-position="{{ $giscus.input_position | default "top" }}"
data-theme="{{ $giscus.theme | default "light" }}"
- crossorigin="anonymous"
+ data-lang="{{ $giscus.lang | default "en" }}"
+ crossorigin="anonymous"
async>
</script>
{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}