Add Comments to Your Jekyll Site
Comments, Reactions, and Ratings for Your Static Site
Your Jekyll site is fast and simple. Comments can be too. Add one include file to your post layout, and every post gets a comment section without a database or server.
Steps to Add Comments to Jekyll
First, sign up at the Hyvor Talk Console and add your website with your site's domain. Copy the website ID from Settings → Website.
Add your website ID to
_config.yml:hyvor_talk: website_id: YOUR_WEBSITE_IDCreate
_includes/comments.htmlwith the embed code. It uses the post'spage.idas the page ID, so each post gets its own thread.{% if page.comments != false %} <script async src="https://talk.hyvor.com/embed/embed.js" type="module"></script> <hyvor-talk-comments website-id="{{ site.hyvor_talk.website_id }}" page-id="{{ page.id }}" ></hyvor-talk-comments> {% endif %}Include it in
_layouts/post.html, after the content. If your theme comes from a gem, copy itspost.htmlinto your own_layoutsfolder first, then edit the copy.<article> <h1>{{ page.title }}</h1> {{ content }} </article> {% include comments.html %}Run
bundle exec jekyll build(or push to GitHub Pages) and open a post. The comments load at the bottom.
Show comment counts on your post list
To show how many comments each post has, add a comment count element next to each post in your list,
then load the script after them. Use the same post.id as the page ID.
{% for post in site.posts %}
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
<hyvor-talk-comment-count page-id="{{ post.id }}"></hyvor-talk-comment-count>
{% endfor %}
<script src="https://talk.hyvor.com/embed/comment-counts.js" type="module"></script>
<script>
hyvorTalkCommentCounts.load({
"website-id": {{ site.hyvor_talk.website_id }}
})
</script>That's it. New comments show up right away, with no rebuild needed. From the Console, you can change the look and set up moderation.
Frequently asked questions
Jekyll builds plain HTML files, so there's no server to store comments. Hyvor Talk stores them for you and loads them in the browser. Your site stays static, and you don't have to run anything new.
No gem is needed. One include file with the embed code does the job of a comments plugin, and it works on GitHub Pages, which doesn't allow most custom plugins anyway.
Jekyll gives every post an ID based on its date and slug, like /2025/03/14/my-post. It stays the same when you change your permalink style, so threads don't get lost. On regular pages it's empty, and Hyvor Talk falls back to the URL. See page-id.
Yes. Themes like Minima include a Disqus file in the post layout. Put {% include comments.html %} in its place. You can also import your Disqus comments so old discussions come along.
Yes. Add comments: false to the front matter of that post. The include checks for it and skips the embed.
Threaded replies, upvotes, reactions, and an email when someone answers them. You get spam filtering, moderation, and a Console to manage it all, with no database on your side.
Yes, 14 days with no credit card. See the pricing page for plans.