diff options
author | Don Denton <don@happycollision.com> | 2015-12-26 04:10:16 +0300 |
---|---|---|
committer | Don Denton <don@happycollision.com> | 2015-12-26 04:20:06 +0300 |
commit | c05302a225c680db0bc213d4b38696a2cf233efa (patch) | |
tree | deb3658fae165351e66aec5f713a50ce9f1a0105 | |
parent | 1a0e590fee02a243e380503022ecb5eac346d709 (diff) |
Edit _layouts/post.html to remove disqus if unused
Now, leaving out a disqus name in _config.yml will have the same effect
as turning comments off on each individual page.
-rw-r--r-- | _layouts/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 67eaea7..e57778f 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -48,7 +48,7 @@ {% if page.share != false %}{% include social-share.html %}{% endif %} </footer> </div><!-- /.entry-content --> - {% if page.comments != false %}<section id="disqus_thread"></section><!-- /#disqus_thread -->{% endif %} + {% if page.comments != false and site.disqus_shortname %}<section id="disqus_thread"></section><!-- /#disqus_thread -->{% endif %} {% if site.related_posts.size > 0 %}{% include read-more.html %}{% endif %} </article> </div><!-- /#main --> |