From c249f282c0dbec7b68548daae7578d56e17d7831 Mon Sep 17 00:00:00 2001 From: Petr Ruzicka Date: Fri, 14 Oct 2022 22:31:44 +0200 Subject: [PATCH] chore(giscus): add `reactions-enabled` option (#712) --- _config.yml | 9 +++++---- _includes/comments/giscus.html | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 640180d9b60..d90f541d2b7 100644 --- a/_config.yml +++ b/_config.yml @@ -99,13 +99,14 @@ comments: issue_term: # < url | pathname | title | ...> # Giscus options › https://giscus.app giscus: - repo: # / + repo: # / repo_id: category: category_id: - mapping: # optional, default to 'pathname' - input_position: # optional, default to 'bottom' - lang: # optional, default to the value of `site.lang` + mapping: # optional, default to 'pathname' + input_position: # optional, default to 'bottom' + lang: # optional, default to the value of `site.lang` + reactions_enabled: # optional, default to the value of `1` # Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets assets: diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 8bfacacf11b..29b848f8579 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -20,7 +20,7 @@ "data-category": "{{ site.comments.giscus.category }}", "data-category-id": "{{ site.comments.giscus.category_id }}", "data-mapping": "{{ site.comments.giscus.mapping | default: 'pathname' }}", - "data-reactions-enabled": "1", + "data-reactions-enabled": "{{ site.comments.giscus.reactions_enabled | default: '1' }}", "data-emit-metadata": "0", "data-theme": initTheme, "data-input-position": "{{ site.comments.giscus.input_position | default: 'bottom' }}",