I have selected Disqus for adding comments on my posts. Disqus is one of the easiest comment platform you can implement in static sites such as Jekyll. Jekyll is made using Ruby and is one of the best static framework used today especially in making documentations, blogs and portfolio. In fact this site you are viewing is made using jekyll. Isn't it awesome?
So how do we implement comments in our site using disqus?
First you need to create account and organization on Disqus. There will be informations they require you to fill, but it will only take a minutes.
After you create your account organization on disqus, you have to copy your disqus shortname located at
general and put it on your
_config.yml folder. Like this:
Then you have to create
comments.html inside your
_includes folder and paste this code:
If you allow your post to have comments you will have to add boolean variable:
comments at the top of your post and set it to
Last, you have just to render your
comments.html from your
_includes folder to the bottom part of your
post.html layout file. Like this:
You’re all set.