Can giscus be used with Furo theme? #614
Replies: 2 comments
-
This doesn't require theme support per-se. You'll want to inject your own JS (and maybe HTML) into the page. See https://pradyunsg.me/furo/customisation/injecting/ for the details. :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@pradyunsg, sorry I am a noob when it comes to HTML and Sphinx themes. What I gathered so far is adding a block like this in a file called {% extends '!page.html' %}
{% block body %}
{{ super() }}
<div>
<script src="https://giscus.app/client.js"
data-repo="e3-/kit"
data-repo-id="MDEwOlJlcG9zaXRvcnkzMjkxMzIyNzQ="
data-category="Documentation"
data-category-id="DIC_kwDOE54o8s4CWsWE"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</div>
{% endblock %} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've seen some Sphinx themes incorporate giscus as a commenting system. I'm relatively new to all of this, and I wasn't sure if this was something that required support by Furo. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions