feat: add GitHub Discussions as a comment provider via Giscus (#2830)

This commit is contained in:
Wei-Tse Hsu authored and GitHub committed 2022-09-16 19:41:38 +01:00
1 parent c40f8ca503
commit 5191e384bd
9 files changed
+59

No files matched your search

@@ -0,0 +1,19 @@
{{ if site.Params.features.comment.giscus }}
{{ $config := site.Params.features.comment.giscus }}
<script src="https://giscus.app/client.js"
data-repo="{{$config.repo}}"
data-repo-id="{{$config.repo_id}}"
data-category="{{$config.category}}"
data-category-id="{{$config.category_id}}"
data-mapping="{{ $config.mapping | default "pathname" }}"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="{{ $config.theme | default "preferred_color_scheme" }}"
data-lang="{{ $config.language_code | default "en" }}"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
{{ end }}
@@ -81,6 +81,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -78,6 +78,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -77,6 +77,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -79,6 +79,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -80,6 +80,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -75,6 +75,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
@@ -80,6 +80,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: ''
algolia:
@@ -83,6 +83,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia: