Blog comments = Disqus + Jekyll

Jekyll and Disqus integration steps are described in Joshua Lande's post.

However it is better to get a little bit deeper and set Disqus configuration variables.

It's pretty simple and straightforward. Quote from my layout:

var disqus_shortname = 'vitalyrepinblog';
{% unless page.gamla_disqus_satte %}
    var disqus_identifier = '{{ | escape }}';
    var disqus_title = '{{ page.title | escape }}';
    var disqus_url = '{{site.url}}{{site.baseurl}}{{ page.url }}';
{% endunless %}

Variable gamladisqussatte is needed for the old-style Disqus comments (integrated without setting variables other than disqus_shortname) not to be lost. It is set in the post's YAML frontmatter.

If you liked this post, you can share it with your followers or follow me on Twitter!

#blogging #disqus #jekyll