diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:08:43 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:08:43 +0100 |
commit | eda1a986cba76d57ebcbc6a0dca2463d780f118f (patch) | |
tree | 54a46c7e844d1614e0e497cd56bf0022f31ed135 /source/_includes | |
parent | 1b7eef8fc078b492afdadaffbfee46b52c41173d (diff) | |
download | octopress-theme-jeyzu-eda1a986cba76d57ebcbc6a0dca2463d780f118f.zip octopress-theme-jeyzu-eda1a986cba76d57ebcbc6a0dca2463d780f118f.tar.gz |
hide comment section if comment is disabled
Diffstat (limited to 'source/_includes')
-rw-r--r-- | source/_includes/article.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ <div class="meta"> <div class="date">{% include post/date.html %}{{ time }}</div> <div class="tags">{% include post/categories.html %}</div> + {% if site.disqus_short_name and post.comments == true %} <div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div> + {% endif %} </div> {% else %} <h1 class="title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1> @@ -16,6 +18,8 @@ <div class="meta"> <div class="date">{% include post/date.html %}{{ time }}</div> <div class="tags">{% include post/categories.html %}</div> + {% if site.disqus_short_name and page.comments == true %} <div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div> + {% endif %} </div> {% endif %}
\ No newline at end of file |