From b2828eb039ddc7c0108b6af06ca7f5d8c87a5459 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 21 Sep 2011 11:46:48 +0200 Subject: Added optional comment count for disqus, fixes #88 --- .themes/classic/source/_includes/article.html | 7 ++++++- _config.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 5cd6fda1..79e26528 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -6,7 +6,12 @@

{{ page.title | titlecase }}

{% endif %} {% unless page.meta == false %} -

{% include post/date.html %}{{ time }}

+

+ {% include post/date.html %}{{ time }} + {% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %} + | Comments + {% endif %} +

{% endunless %} {% endunless %} diff --git a/_config.yml b/_config.yml index 6d472bf6..f40ccf19 100644 --- a/_config.yml +++ b/_config.yml @@ -76,6 +76,7 @@ delicious_count: 3 # Disqus Comments disqus_short_name: +disqus_show_comment_count: false # Google Analytics google_analytics_tracking_id: -- cgit v1.2.1