December 16, 2011
Since switching to Octopress my site has used Disqus to manage comments. Migrating my existing comments from WordPress was simple, and managing them all in Disqus, has been a breeze. Of course I don’t have or get that many so I’m not taxing the Disqus system at all.
The default Octopress theme, which I’ve slightly modified, doesn’t show any comment indication on the main index pages. After some assistance from Divya on the #octopress IRC channel I’ve modified my site to display comment counts for all postings.
Postings that I create, like this one, will have the comment count displayed just beneath the posting title. Link style postings will have the comment count displayed after the posting. In both cases the comment link takes you to the permanent link for the posting.
The code for displaying the comment link is simple and straight forward:
Just substitute your site’s information, and add the
site.disqus_show_comment_count attribute to your
_config.yml file and you should be good to go.