Browse code

Added optional comment count for disqus, fixes #88

Frederic Hemberger authored on 21/09/2011 at 09:46:48
Showing 2 changed files
... ...
@@ -6,7 +6,12 @@
6 6
       <h1 class="entry-title">{{ page.title | titlecase }}</h1>
7 7
     {% endif %}
8 8
     {% unless page.meta == false %}
9
-      <p class="meta">{% include post/date.html %}{{ time }}</p>
9
+      <p class="meta">
10
+        {% include post/date.html %}{{ time }}
11
+        {% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
12
+         | <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
13
+        {% endif %}
14
+      </p>
10 15
     {% endunless %}
11 16
   </header>
12 17
 {% endunless %}
... ...
@@ -76,6 +76,7 @@ delicious_count: 3
76 76
 
77 77
 # Disqus Comments
78 78
 disqus_short_name:
79
+disqus_show_comment_count: false
79 80
 
80 81
 # Google Analytics
81 82
 google_analytics_tracking_id: