Search code examples
staticjekylljekyll-extensions

Static Comments System for Jekyll


My blog currently runs Jekyll and the Minimal Mistakes theme, and uses the theme's built in functionality to add the Disqus comments system.

This JavaScript-based commenting system, to me sort of defeats the purpose of having a static blog in Jekyll, considering:

  1. Its JavaScript creates a decisively non-static page.
  2. Comments are not stored with the website.
  3. Comments are stored in some database instead of flat-text files.

My question is, therefore: What is a suitable system for comments that stays as close to the Jekyll philosophy as possible (an ideally runs on gh-pages)?

I found several possible candidates:

  1. Isso is a comments system which is looks similar to Disqus, it works with a SQLite database
  2. Jekyll::StaticComments seems pretty suitable, but it means you have to manually add the comments from emails.

Are there any other options? If so, what would work with gh-pages, and what would work on a self-hosted Jekyll blog?


Solution

  • Here's another solution which is dynamic and uses JavaScript, but doesn't store the comments at a 3rd party provider:

    This guy made a static website with Jekyll, but uses GitHub's issue tracker to create his comments.
    He uses GitHub Pages to host his blog, and for each new post, he creates a new issue in his blog's repository.
    Then, he uses JavaScript to get the issue's comments from the GitHub API and show it on the page.

    Here's a blog post which explains how to set this up:
    GitHub hosted comments for GitHub hosted blogs