-
DescriptionI am using giscus tool for commment. Is there any ways to enable comments section to ALL pages in Quarto blog at once instead of paste below code to each posts qmd file? ''' <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>''' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Use "include-*" options. https://quarto.org/docs/output-formats/html-basics.html#includes But why not using native Giscus support? https://quarto.org/docs/output-formats/html-basics.html#commenting |
Beta Was this translation helpful? Give feedback.
-
Thanks. So there are two way to add comments section to ALL pages in Quarto blog 1.add following into _quarto.yml format:
2.add following into _quarto.yml website: |
Beta Was this translation helpful? Give feedback.
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:
2.add following into _quarto.yml
website:
comments:
giscus:
repo: xxxx/xxxx
input-position: "bottom"