add giscus support (#888)

This commit is contained in:
Patrick Garziglia 2021-10-10 12:26:30 -04:00 committed by GitHub
parent 757044f6ef
commit b44c048cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 2 deletions

View file

@ -3,4 +3,5 @@
{% include fb-comment.html %}
{% include staticman-comments.html %}
{% include utterances-comment.html %}
{% include giscus-comment.html %}
{% endif %}

View 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 %}