diff options
author | Michael Rose <mmistakes@users.noreply.github.com> | 2015-12-27 06:56:52 +0300 |
---|---|---|
committer | Michael Rose <mmistakes@users.noreply.github.com> | 2015-12-27 06:56:52 +0300 |
commit | d8ee1b933e01abcfc338e8d40ef4a6bcd2d882b2 (patch) | |
tree | 45948881f011feb1f465e0e3dfc4f0fae3c6eb7d | |
parent | 485ee4451231d31914da1cb784d88f89ef41d085 (diff) | |
parent | 41110a385efd6e8e658d339ee9dbce8b0c4cd3be (diff) |
Merge pull request #128 from happycollision/upstream-patch
Globally disable disqus comments
-rw-r--r-- | _layouts/page.html | 2 | ||||
-rw-r--r-- | _layouts/post.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/page.html b/_layouts/page.html index a692417..f54c5db 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -42,7 +42,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 %} </article> </div><!-- /#main --> 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 --> |