Setting Up Comments, Share, and Subscribe
I’ve added the infrastructure for comments and sharing. Here’s what you need to do:
1. Enable GitHub Discussions
- Go to https://github.com/9trocode/9trocode.github.io/settings
- Scroll down to “Features”
- Check “Discussions”
- Click “Set up discussions”
2. Get Giscus Configuration
- Go to https://giscus.app/
- Enter your repo:
9trocode/9trocode.github.io - Select “Announcements” category (or create one)
- Copy the
data-category-idvalue - Update
_layouts/post.htmlline 24 with the category ID
Your repo ID is already set: 253369748
3. What’s Already Added
Share Buttons
- Hacker News
These work immediately, no setup needed.
Comments (Giscus)
- Uses GitHub Discussions (no third-party tracking)
- Visitors need GitHub account to comment
- You moderate via GitHub Discussions
- Dark theme to match site
Subscribe (RSS Feed)
Already have RSS feed at /feed.xml (jekyll-feed plugin)
To add email newsletter, you’d need:
- Buttondown (free tier)
- Substack
- Mailchimp
Add this to _layouts/post.html if you want newsletter signup:
<div class="newsletter" style="margin: 2rem 0; padding: 1rem; border: 1px solid #333;">
<h3>Subscribe</h3>
<p>Get notified when I publish new posts about infrastructure and cloud engineering.</p>
<form action="https://buttondown.email/api/emails/embed-subscribe/YOUR_USERNAME" method="post" target="_blank">
<input type="email" name="email" placeholder="[email protected]" required style="padding: 0.5rem; margin-right: 0.5rem;">
<button type="submit" style="padding: 0.5rem 1rem;">Subscribe</button>
</form>
</div>
Alternative: Simple Subscribe Link
Add to footer or sidebar:
<a href="/feed.xml">RSS Feed</a>
That’s it! Once you enable Discussions and update the category ID, comments will work.