Skip to content

Commit

Permalink
feat: add support for giscus strict title matching (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
GetOutOfMyBakery authored Mar 18, 2024
1 parent 8ed2bb7 commit 49fc3a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ comments:
category:
category_id:
mapping: # optional, default to 'pathname'
strict: # optional, default to '0'
input_position: # optional, default to 'bottom'
lang: # optional, default to the value of `site.lang`
reactions_enabled: # optional, default to the value of `1`
Expand Down
1 change: 1 addition & 0 deletions _includes/comments/giscus.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'data-category': '{{ site.comments.giscus.category }}',
'data-category-id': '{{ site.comments.giscus.category_id }}',
'data-mapping': '{{ site.comments.giscus.mapping | default: 'pathname' }}',
'data-strict' : '{{ site.comments.giscus.strict | default: '0' }}',
'data-reactions-enabled': '{{ site.comments.giscus.reactions_enabled | default: '1' }}',
'data-emit-metadata': '0',
'data-theme': initTheme,
Expand Down

0 comments on commit 49fc3a7

Please sign in to comment.