Disqus Comments in Github Jekyll

My website is built on Jekyll Now through Github. It is already setup to include Disqus comments in posts. Add comments to your blog posts with with a few steps.

  1. Sign up at Disqus. Add your website and note the unique shortname.
  2. Edit the _config.yml file such that you add your disqus shortname where prompted.
  3. Profit.

Optionally, alter _layouts/post.html slightly so that it will only allow comments to posts you specify. Specifically, adjust these lines toward the end:


	{% if page.comments %}  
	{% include disqus.html %}  
	{% endif %}  

Then, in the front matter at beginning of each blog post, add “comments: true” to enable comments section for that post.

Written on March 1, 2016