Skip to content

Commit

Permalink
Edit _layouts/post.html to remove disqus if unused
Browse files Browse the repository at this point in the history
Now, leaving out a disqus name in _config.yml will have the same effect
as turning comments off on each individual page.
  • Loading branch information
happycollision committed Dec 26, 2015
1 parent 1a0e590 commit c05302a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2><span class="entry-date date published"><time datetime="{{ page.date | date_
{% 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 -->
Expand Down

0 comments on commit c05302a

Please sign in to comment.