chore(giscus): add reactions-enabled
option (#712)
This commit is contained in:
parent
3432413020
commit
70662a0365
2 changed files with 6 additions and 5 deletions
|
@ -106,6 +106,7 @@ comments:
|
||||||
mapping: # optional, default to 'pathname'
|
mapping: # optional, default to 'pathname'
|
||||||
input_position: # optional, default to 'bottom'
|
input_position: # optional, default to 'bottom'
|
||||||
lang: # optional, default to the value of `site.lang`
|
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
|
# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets
|
||||||
assets:
|
assets:
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"data-category": "{{ site.comments.giscus.category }}",
|
"data-category": "{{ site.comments.giscus.category }}",
|
||||||
"data-category-id": "{{ site.comments.giscus.category_id }}",
|
"data-category-id": "{{ site.comments.giscus.category_id }}",
|
||||||
"data-mapping": "{{ site.comments.giscus.mapping | default: 'pathname' }}",
|
"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-emit-metadata": "0",
|
||||||
"data-theme": initTheme,
|
"data-theme": initTheme,
|
||||||
"data-input-position": "{{ site.comments.giscus.input_position | default: 'bottom' }}",
|
"data-input-position": "{{ site.comments.giscus.input_position | default: 'bottom' }}",
|
||||||
|
|
Loading…
Reference in a new issue