Skip to content

Commit

Permalink
Display comments section on articles only if DISQUS_SITENAME or FACEB…
Browse files Browse the repository at this point in the history
…OOK_APPID variables are set (for the the boostrap theme)
  • Loading branch information
FooSoft committed Sep 1, 2014
1 parent 62c7297 commit cafd88d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
<div class="page-header"><h1>{{ article.title }}</h1></div>
<div class="well small">{% include "metadata.html" %}</div>
<div>{{ article.content }}</div>
{% if DISQUS_SITENAME or FACEBOOK_APPID %}
<div>
<h2>Comments</h2>
{% include "twitter.html" %}
{% if DISQUS_SITENAME %}<div id="disqus_thread"></div>{% endif %}
{% if FACEBOOK_APPID %}<div class="fb-comments" data-href="{{ FQ_SITEURL }}/{{ article.url }}" data-num-posts="10" data-width="760"></div>{% endif %}
<div>
</div>
{% endif %}
</div>
{% endblock %}

0 comments on commit cafd88d

Please sign in to comment.