This guide will help you set up Giscus comments for your PowerPlatform Tips blog. Giscus uses GitHub Discussions as the backend for comments.
username/repository-name
MarceLehmann/PowerPlatformTip
From the generated script at giscus.app, you’ll see something like this:
<script src="https://giscus.app/client.js"
data-repo="MarceLehmann/PowerPlatformTip"
data-repo-id="R_kgDOxxxxxx"
data-category="General"
data-category-id="DIC_kwDOxxxxxx"
...>
</script>
Copy the values for:
data-repo-id
(starts with “R_kgDO”)data-category-id
(starts with “DIC_kwDO”)_config.yml
in your blogcomments:
provider: "giscus"
giscus:
repo_id: "R_kgDOxxxxxx" # Your repo ID from step 3
category_name: "General" # Your chosen category name
category_id: "DIC_kwDOxxxxxx" # Your category ID from step 3
discussion_term: "pathname"
reactions_enabled: "1"
theme: "light"
strict: "0"
input_position: "bottom"
emit_metadata: "0"
lang: "en"
lazy: true
bundle exec jekyll serve
The comments will automatically match your site’s theme. You can customize the appearance by:
theme
value in _config.yml
:
"light"
(default)"dark"
"preferred_color_scheme"
(follows system theme)assets/css/main.scss
:// Custom Giscus styling
.giscus {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e1e5e9;
}
.giscus-frame {
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
Comments not appearing?
repo_id
and category_id
are correctComments in wrong language?
lang: "en"
in your Giscus configurationWant to disable comments on specific posts? Add this to the front matter of any post:
comments: false
Your PowerPlatform Tips blog now has a beautiful, GitHub-integrated comment system. Visitors can comment using their GitHub accounts, and all discussions will be stored in your repository’s Discussions section.
Interested in training or personalized coaching to enhance your PowerPlatform skills? 🚀 Book a package with me at thepoweraddicts.ch and benefit from customized strategies for your success. 💡