In a GitHub blog, managing comments can be challenging without a backend server. While there are various solutions to provide comment functionality, each has its pros and cons. This article introduces Utterances, an elegant solution for managing comments using GitHub Issues. In this tutorial, we will explain how to add Utterances to a GitHub blog using Jekyll.
Utterances is a lightweight comment widget based on GitHub Issues. It allows you to write comments using GitHub Issues.
First, you need a GitHub repository to store the comments. You can use an existing repository or create a new one dedicated to comments.
blog-comments
.Example of an issue created when a comment is posted
_layouts
directory and open post.html
(or the layout file you use for posts).Example of a layout file