From 700fd5bad7272dd950f861e8550215cd8fafb413 Mon Sep 17 00:00:00 2001 From: GetOutOfMyBakery <12701930+GetOutOfMyBakery@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:08:05 +0000 Subject: [PATCH] feat: add support for giscus strict title matching (#1614) --- _config.yml | 1 + _includes/comments/giscus.html | 1 + 2 files changed, 2 insertions(+) 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,