mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 06:17:20 +00:00
feat: add GitHub Discussions as a comment provider via Giscus (#2830)
This commit is contained in:
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 }}
|
||||
Reference in new issue
Block a user