diff --git a/_config.yml b/_config.yml index aaaa2ad42fd..1076673d013 100644 --- a/_config.yml +++ b/_config.yml @@ -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` diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 8f042468e62..526aa22bcf1 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -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,