Integrating Cactus Comments with the Jekyll static-site generator.

This integration describes how to use Jekyll with Cactus Comments. As Jekyll already supports comments through disqus, we can use this to our advantage.

The short version is given in this commit.


We need to enable the disqus feature as follows. The shortname will be used for the Matrix rooms.

# Disqus Comments
    # Leave shortname blank to disable comments site-wide.
    # Disable comments for any post by adding `comments: false` to that post's YAML Front Matter.


Include the required Javascript files from the cactus server. It can also be self-hosted. Add or modify custom-head.html.

<script type="text/javascript" src=""></script>
<link rel="stylesheet" href="" type="text/css">

Replace the default disqus comment section with a cactus section in disqus_comments.html. The site.disqus.shortname can also be left out in the configuration and hard-coded here.

{%- if page.comments != false -%}

  <div id="comment-section"></div>
    node: document.getElementById("comment-section"),
    defaultHomeserverUrl: "",
    serverName: "",
    siteName: "{{ site.disqus.shortname }}",
    commentSectionId: "{{ page.url }}"
  <noscript>Please enable JavaScript to view the <a href="" rel="nofollow">comments powered by</a></noscript>

{%- endif -%}

The custom-head.html needs to be included if you’re using a version < 3.0. Please see the this commit in this case.