Skip to content

Commit 700fd5b

Browse files
feat: add support for giscus strict title matching (#1614)
1 parent 8e5fbb7 commit 700fd5b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ comments:
114114
category:
115115
category_id:
116116
mapping: # optional, default to 'pathname'
117+
strict: # optional, default to '0'
117118
input_position: # optional, default to 'bottom'
118119
lang: # optional, default to the value of `site.lang`
119120
reactions_enabled: # optional, default to the value of `1`

_includes/comments/giscus.html

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'data-category': '{{ site.comments.giscus.category }}',
2626
'data-category-id': '{{ site.comments.giscus.category_id }}',
2727
'data-mapping': '{{ site.comments.giscus.mapping | default: 'pathname' }}',
28+
'data-strict' : '{{ site.comments.giscus.strict | default: '0' }}',
2829
'data-reactions-enabled': '{{ site.comments.giscus.reactions_enabled | default: '1' }}',
2930
'data-emit-metadata': '0',
3031
'data-theme': initTheme,

0 commit comments

Comments
 (0)