diff --git a/_config.yml b/_config.yml index 6b4d4c24aaa..4535c0e176c 100644 --- a/_config.yml +++ b/_config.yml @@ -72,3 +72,19 @@ compress_html: sass: style: compressed + +# Setting a giscus data will enable the comment section on +# pages with `comments: true` in the front matter. +# See documentation for more information: https://giscus.app +giscus: + repo: username/repo + repo_id: R_some_repo_id + category: MyCategory + category_id: DIS_some_category_id + mapping: pathname + strict: 0 + reactions_enabled: 1 + emit_metadata: 0 + input_position: bottom + theme: preferred_color_scheme + lang: en diff --git a/_includes/my-comments.html b/_includes/my-comments.html index 8e4377a868f..30bac1f7b0f 100644 --- a/_includes/my-comments.html +++ b/_includes/my-comments.html @@ -22,3 +22,22 @@ } }(window, document); {% endif %} + +{% assign giscus = site.giscus %} +{% if giscus %} + +{% endif %}