Skip to content

How do I add a comments section to ALL pages in Quarto blog #12266

Answered by JCfly3000
JCfly3000 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks.

So there are two way to add comments section to ALL pages in Quarto blog

1.add following into _quarto.yml

format:
html:
include-after-body:

  • text: <script src="https://giscus.app/client.js" data-repo="[ENTER REPO HERE]" data-repo-id="[ENTER REPO ID HERE]" data-category="[ENTER CATEGORY NAME HERE]" data-category-id="[ENTER CATEGORY ID HERE]" data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="preferred_color_scheme" data-lang="en" crossorigin="anonymous" async> </script>

2.add following into _quarto.yml

website:
comments:
giscus:
repo: xxxx/xxxx
input-position: "bottom"

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JCfly3000
Comment options

@gordonwoodhull
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JCfly3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
websites Issues creating websites
3 participants