From 89ba1419b167eefefd080b481f169e2d9cb6dcb5 Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Tue, 21 Feb 2012 16:09:13 +0000 Subject: Show comment counts. --- _site_build/_includes/disqus.html | 10 +++++++--- _site_build/_includes/post_excerpt.html | 5 ++++- _site_build/_layouts/category_index.html | 1 + _site_build/_layouts/default.html | 2 +- _site_build/_layouts/post.html | 5 ++++- _site_build/css/style.css | 2 +- _site_build/index.html | 1 + 7 files changed, 19 insertions(+), 7 deletions(-) diff --git a/_site_build/_includes/disqus.html b/_site_build/_includes/disqus.html index 01bb568..ae4be5e 100644 --- a/_site_build/_includes/disqus.html +++ b/_site_build/_includes/disqus.html @@ -1,6 +1,10 @@ diff --git a/_site_build/_includes/post_excerpt.html b/_site_build/_includes/post_excerpt.html index 48e4a1e..9578551 100644 --- a/_site_build/_includes/post_excerpt.html +++ b/_site_build/_includes/post_excerpt.html @@ -3,7 +3,10 @@

{{ post.title }}

{% if post.categories.size != 0 %} -
Posted in {{ post.categories | category_links }}
+ | Posted in {{ post.categories | category_links }} + {% endif %} + {% if post.comments and site.disqus_shortname %} + | Comments {% endif %} {{ post.content | truncate }} 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 ---

{{ page.title }}

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 %} 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

{{ page.title }}

{% if site.generate_category_indexes and page.categories.size != 0 %} -
Posted in {{ page.categories | category_links }}
+ | Posted in {{ page.categories | category_links }} + {% endif %} + {% if page.comments and site.disqus_shortname %} + | Comments {% endif %} {{ content }} diff --git a/_site_build/css/style.css b/_site_build/css/style.css index a362496..bab0110 100644 --- a/_site_build/css/style.css +++ b/_site_build/css/style.css @@ -214,7 +214,7 @@ section#archives h2 { text-transform: lowercase; } -article header time, article .categories { +article header time, article .categories, article .comment-count { color: #999999; } diff --git a/_site_build/index.html b/_site_build/index.html index 71a3e34..3a57bab 100644 --- a/_site_build/index.html +++ b/_site_build/index.html @@ -2,6 +2,7 @@ layout: default title: Home robots: follow, noindex, noodp, noydir, noarchive +show_comment_counts: true ---
{% for post in site.posts limit:site.max_recent_posts %} -- cgit v1.2.3-13-gbd6f