summaryrefslogtreecommitdiffstats
path: root/source/_layouts
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:08:43 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:08:43 +0100
commiteda1a986cba76d57ebcbc6a0dca2463d780f118f (patch)
tree54a46c7e844d1614e0e497cd56bf0022f31ed135 /source/_layouts
parent1b7eef8fc078b492afdadaffbfee46b52c41173d (diff)
downloadoctopress-theme-jeyzu-eda1a986cba76d57ebcbc6a0dca2463d780f118f.zip
octopress-theme-jeyzu-eda1a986cba76d57ebcbc6a0dca2463d780f118f.tar.gz
hide comment section if comment is disabled
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/post.html4
1 files changed, 3 insertions, 1 deletions
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
<article class="post">{% include article.html %}</article>
{% include post/sharing.html %}
+{% if site.disqus_short_name and page.comments == true %}
<section id="comment">
<h1 class="title">留言</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
-</section> \ No newline at end of file
+</section>
+{% endif %} \ No newline at end of file