Don't display comments link for post excerpts on index page when comments for that post are set to false
| ... | ... |
@@ -8,7 +8,7 @@ |
| 8 | 8 |
{% unless page.meta == false %}
|
| 9 | 9 |
<p class="meta"> |
| 10 | 10 |
{% include post/date.html %}{{ time }}
|
| 11 |
- {% if site.disqus_short_name and page.comments != false and site.disqus_show_comment_count == true %}
|
|
| 11 |
+ {% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
|
|
| 12 | 12 |
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
|
| 13 | 13 |
{% endif %}
|
| 14 | 14 |
</p> |