summaryrefslogtreecommitdiff
path: root/_site_build
diff options
context:
space:
mode:
Diffstat (limited to '_site_build')
-rw-r--r--_site_build/_includes/disqus.html10
-rw-r--r--_site_build/_includes/post_excerpt.html5
-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
-rw-r--r--_site_build/css/style.css2
-rw-r--r--_site_build/index.html1
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 @@
<script type="text/javascript">
var disqus_shortname='{{ site.disqus_shortname }}',disqus_identifier='{{ page.url }}',disqus_url='{{ site.url}}{{ page.url }}',disqus_title='{{ page.title | replace: "'", "\\'" }}'{% unless site.production %},disqus_developer=1{% endunless %};
- (function(d,t){var q=d.createElement(t),s=d.getElementsByTagName(t)[0];
- q.src='//{{ site.disqus_shortname }}.disqus.com/embed.js';
- s.parentNode.insertBefore(q,s);}(document,'script'));
+ (function(d,t){
+ function i(u){var q=d.createElement(t),s=d.getElementsByTagName(t)[0];q.src=u;s.parentNode.insertBefore(q,s);}
+ {% if page.comments %}
+ i('//{{ site.disqus_shortname }}.disqus.com/embed.js');
+ {% endif %}
+ i('//{{ site.disqus_shortname }}.disqus.com/count.js');
+ }(document,'script'));
</script>
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 @@
<h1><a href="{{ post.url }}" rel="bookmark" target="_self" title="{{ post.title }}">{{ post.title }}</a></h1>
<time datetime="{{ post.date | date: '%Y-%m-%d' }}" pubdate>{{ post.date | date: '%A' }} {{ post.date | ordinalize }} {{ post.date | date: '%B, %Y' }}</time>
{% if post.categories.size != 0 %}
- <div class="categories">Posted in {{ post.categories | category_links }}</div>
+ <span class="categories"> | Posted in {{ post.categories | category_links }}</span>
+ {% endif %}
+ {% if post.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>
{{ 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
---
<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 }}
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
---
<section id="recent-posts">
{% for post in site.posts limit:site.max_recent_posts %}