Jeremiah Fyffe


» Adding Disqus Comments

21 Feb 2014

I have decided to use Disqus for the comments at I have three reasons.

  1. I have used them before so I am already setup in the Disqus system.
  2. Not only am I setup in the Disqus system, but Disqus is a great way to keep track of one's comments and others' responses across the internet. When I make a comment at a blog I have the hardest time going back to check to see if there are others who have followed up on my comment. Disqus helps with this.
  3. I don't know how to set up comments any other way. (I suppose I could have mentioned this reason first.)

The process is ridiculously simple.

  1. I navigated to the Disqus website, setup a new blog for comments and then went to the "code" page and copied the necessary code for setup in a generic html blog.
  2. This is the code that it generated for my particular site.
<div id="disqus_thread"></div>
    <script type="text/javascript">
        var disqus_shortname = 'fyffe'; // required: replace example with your forum shortname

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    <noscript>Please enable JavaScript to view the <a href="">comments powered by Disqus.</a></noscript>
    <a href="" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

Notice the line:

        var disqus_shortname = 'fyffe'; // required: replace example with your forum shortname

Replace 'fyffe' with the Disqus shortname of your own blog.

  1. I placed this code at the bottome of the "posts.html". This means that comments will only appear at the bottom of pages that are generated as posts.

Hopefully all of you who know a lot more than I do about Jekyll can now use to comments to help me along in this journey of Launch.


comments powered by Disqus