summaryrefslogtreecommitdiff
path: root/_site_build/_layouts
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-02-21 16:09:13 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-02-21 16:09:13 +0000
commit89ba1419b167eefefd080b481f169e2d9cb6dcb5 (patch)
tree5ce85d128e290fe18814d3d645beeacbc0203790 /_site_build/_layouts
parent34f53553ac11079ccb6868999b7ccbacacdec49a (diff)
Show comment counts.
Diffstat (limited to '_site_build/_layouts')
-rw-r--r--_site_build/_layouts/category_index.html1
-rw-r--r--_site_build/_layouts/default.html2
-rw-r--r--_site_build/_layouts/post.html5
3 files changed, 6 insertions, 2 deletions
diff --git a/_site_build/_layouts/category_index.html b/_site_build/_layouts/category_index.html
index 729ff2e..61a79a8 100644
--- a/_site_build/_layouts/category_index.html
+++ b/_site_build/_layouts/category_index.html
@@ -1,6 +1,7 @@
---
layout: default
robots: follow, noindex, noodp, noydir, noarchive
+show_comment_counts: true
---
<section id="category">
<h1>{{ page.title }}</h1>
diff --git a/_site_build/_layouts/default.html b/_site_build/_layouts/default.html
index 918cc1a..dfda26a 100644
--- a/_site_build/_layouts/default.html
+++ b/_site_build/_layouts/default.html
@@ -30,7 +30,7 @@
{% if site.production and site.google_ua %}
{% include google_analytics.html %}
{% endif %}
-{% if page.comments and site.disqus_shortname %}
+{% if (page.comments or page.show_comment_counts) and site.disqus_shortname %}
{% include disqus.html %}
{% endif %}
</body>
diff --git a/_site_build/_layouts/post.html b/_site_build/_layouts/post.html
index f38b1ed..df3a342 100644
--- a/_site_build/_layouts/post.html
+++ b/_site_build/_layouts/post.html
@@ -6,7 +6,10 @@ layout: default
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date: '%Y-%m-%d' }}" pubdate>{{ page.date | date: '%A' }} {{ page.date | ordinalize }} {{ page.date | date: '%B, %Y' }}</time>
{% if site.generate_category_indexes and page.categories.size != 0 %}
- <div class="categories">Posted in {{ page.categories | category_links }}</div>
+ <span class="categories"> | Posted in {{ page.categories | category_links }}</span>
+ {% endif %}
+ {% if page.comments and site.disqus_shortname %}
+ <span class="comment-count"> | <a href="{{ page.url }}#disqus_thread" data-disqus-identifier="{{ page.url }}">Comments</a></span>
{% endif %}
</header>
{{ content }}