aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-21 11:46:48 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-21 11:46:48 +0200
commitb2828eb039ddc7c0108b6af06ca7f5d8c87a5459 (patch)
treea5bb76b88ebc56eff5209cbb96fdc5a7ec6189b9
parent3dbc379caa737157e1e76d65c0cea2305eda4a5d (diff)
downloadmy_new_personal_website-b2828eb039ddc7c0108b6af06ca7f5d8c87a5459.tar.xz
my_new_personal_website-b2828eb039ddc7c0108b6af06ca7f5d8c87a5459.zip
Added optional comment count for disqus, fixes #88
Diffstat (limited to '')
-rw-r--r--.themes/classic/source/_includes/article.html7
-rw-r--r--_config.yml1
2 files changed, 7 insertions, 1 deletions
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 @@
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %}
{% 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 %}
</header>
{% 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: