From 4df4f7f8dbafcb1571472ce244c61f6ec939039a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 12 Feb 2022 05:25:04 +0800 Subject: [PATCH] Add Giscus comments support (resolve #501) --- _config.yml | 9 ++++++ _includes/comments/giscus.html | 56 ++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 _includes/comments/giscus.html diff --git a/_config.yml b/_config.yml index f364986..a1e0189 100644 --- a/_config.yml +++ b/_config.yml @@ -97,6 +97,15 @@ comments: utterances: repo: # / issue_term: # < url | pathname | title | ...> + # Giscus options › https://giscus.app + giscus: + repo: # / + repo_id: + category: + category_id: + mapping: # optional, default to 'pathname' + input_position: # optional, default to 'bottom' + lang: # optional, default to the value of `site.lang` # Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets assets: diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html new file mode 100644 index 0000000..8bfacac --- /dev/null +++ b/_includes/comments/giscus.html @@ -0,0 +1,56 @@ + +