add giscus support (#888)
This commit is contained in:
parent
757044f6ef
commit
b44c048cba
5 changed files with 36 additions and 2 deletions
|
@ -3,4 +3,5 @@
|
|||
{% include fb-comment.html %}
|
||||
{% include staticman-comments.html %}
|
||||
{% include utterances-comment.html %}
|
||||
{% include giscus-comment.html %}
|
||||
{% endif %}
|
||||
|
|
16
_includes/giscus-comment.html
Normal file
16
_includes/giscus-comment.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% if site.giscus.repository and site.giscus.hostname %}
|
||||
|
||||
<script src="https://{{ site.giscus.hostname }}/client.js"
|
||||
data-repo="{{ site.giscus.repository }}"
|
||||
data-repo-id="{{ site.giscus.repository-id }}"
|
||||
data-category="{{ site.giscus.category }}"
|
||||
data-category-id="{{ site.giscus.category-id }}"
|
||||
data-mapping="{{ site.giscus.mapping }}"
|
||||
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
|
||||
data-emit-metadata="{{ site.giscus.emit-metadata }}"
|
||||
data-theme="{{ site.giscus.theme }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue