Adding Disqus to my blog
Since I use jekyll to generate this blog I don’t have a simple comment function.
So I decided on using [Disqus][disqus] for comments. Integrating it is quite simple:
1. Set up Disqus
Follow this FAQ article. Then use the “Universal Code” and embed it into your pages layout
2. Embed Disqus
In my case I wanted Disqus at the bottom of every post I wrote. So I modified my post.html:
Of course >>DISQUSSHORTNAME<<
was modified to the shortname of this blog.
This FAQ recommended adding comments true
to the YAML Front Matter of post.html
That didn’t work in my case. Instead I added
defaults:
-
scope:
path: ""
type: "posts"
values:
comments: true
to my _config.yaml
That’s it.