From eda1a986cba76d57ebcbc6a0dca2463d780f118f Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:08:43 +0800 Subject: hide comment section if comment is disabled --- source/_includes/article.html | 4 ++++ source/_layouts/post.html | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/_includes/article.html b/source/_includes/article.html index d9c5139..347a52d 100644 --- a/source/_includes/article.html +++ b/source/_includes/article.html @@ -8,7 +8,9 @@
{% include post/date.html %}{{ time }}
{% include post/categories.html %}
+ {% if site.disqus_short_name and post.comments == true %} + {% endif %}
{% else %}

{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}

@@ -16,6 +18,8 @@
{% include post/date.html %}{{ time }}
{% include post/categories.html %}
+ {% if site.disqus_short_name and page.comments == true %} + {% endif %}
{% endif %} \ No newline at end of file diff --git a/source/_layouts/post.html b/source/_layouts/post.html index 096b74d..27f7125 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -5,7 +5,9 @@ single: true
{% include article.html %}
{% include post/sharing.html %} +{% if site.disqus_short_name and page.comments == true %}

留言

{% include post/disqus_thread.html %}
-
\ No newline at end of file + +{% endif %} \ No newline at end of file -- cgit v1.1-2-g2b99