Jeremiah Fyffe

home

» Adding Disqus Comments

21 Feb 2014

I have decided to use Disqus for the comments at JeremiahFyffe.com. 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">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        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 + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" 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.

HELP!

comments powered by Disqus