Added optional comment count for disqus, fixes #88

This commit is contained in:
Frederic Hemberger 2011-09-21 11:46:48 +02:00
parent 3dbc379caa
commit b2828eb039
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,12 @@
<h1 class="entry-title">{{ page.title | titlecase }}</h1> <h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %} {% endif %}
{% unless page.meta == false %} {% unless page.meta == false %}
<p class="meta">{% include post/date.html %}{{ time }}</p> <p class="meta">
{% include post/date.html %}{{ time }}
{% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
</p>
{% endunless %} {% endunless %}
</header> </header>
{% endunless %} {% endunless %}

View File

@ -76,6 +76,7 @@ delicious_count: 3
# Disqus Comments # Disqus Comments
disqus_short_name: disqus_short_name:
disqus_show_comment_count: false
# Google Analytics # Google Analytics
google_analytics_tracking_id: google_analytics_tracking_id: