Make it possible to disable the comments section entirely without having to muck with theme files.

This commit is contained in:
Jon Frisby 2013-02-21 23:58:19 -08:00
parent 72579fe9cf
commit 187d86b514
3 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{% if site.use_comments %}
<section>
<h1>Comments</h1>
{% include custom/comments.html %}
@ -5,3 +6,4 @@
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
{% endif %}
</section>
{% endif %}

View File

@ -1,3 +1,5 @@
{% comment %}
To use a custom comment system, add the javascript to custom/after_footer.html then add the container for your comments here.
Be sure to set "use_comments: true" in site.yml or the comments section will not be displayed!
{% endcomment %}

View File

@ -3,6 +3,8 @@
# Disqus Comments Configuration #
# --------------------------------- #
# In order to use Disqus you must both set the short name here, AND set
# "use_comments: true" in site.yml.
disqus_short_name:
disqus_show_comment_count: false
disqus_developer: 0