Skip to content

Commit

Permalink
chore(giscus): add reactions-enabled option (cotes2020#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap authored and shihtiy-tw committed Nov 26, 2022
1 parent 506f5ca commit 8c35909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ comments:
issue_term: # < url | pathname | title | ...>
# Giscus options › https://giscus.app
giscus:
repo: # <gh-username>/<repo>
repo: # <gh-username>/<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:
Expand Down
2 changes: 1 addition & 1 deletion _includes/comments/giscus.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}",
Expand Down

0 comments on commit 8c35909

Please sign in to comment.