Add Comments to a Octopress Blog
Have you ever wanted to add comments to you github pages blog? It will take a quick two minutes and you’ll be ready for feedback!
Today we’ll be using Disqus, this is something that’s already implemented in the current update of Octopress. The first thing you’ll need to do is signup for a Disqus account. If you already have an account you can skip down to Step 2.
Once you’ve signed up for your Disqus account go to the icon at the top right of your page. In the drop down menu click on the My Home button.
At this point you will have come to your Disqus homepage, for your purposes of using Disqus as a comment feed you won’t need the homepage much. If you go again to the top right of the screen and click on the gear it will show you another drop down menu. In this menu click on the Add Disqus to Site button.
Fill out the form like so:
Make sure that when you choose your Unique Disqus URL you are sure of it. So far Disqus has not given user’s the option of changing it.
At this point in the game you can actually start working with your blog’s source code. If you’re up to date with Octopress you should already have the call to the Disqus partial inside your _layouts/post.html partial.
The only thing you will need to change is inside the _includes/disqus.html partial. On line 4 you will need to put your unique short name for the site. If you can’t remember it go to the admin page of your Disqus account, choose the unique site, and select the Settings tab.
1 2 3 4 5 6 7 8 9 10 11
When you deploy your Octopress blog there will now be a comment section at the end of your blog posts. Keep on being badass!