aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2014-09-24 23:57:43 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2014-09-24 23:57:43 +0200
commitc4691d06497ed2a4265c724b93cd14a318c12bb9 (patch)
tree50b519c54e912f4b0be8c65d5a4ce7a091d4c739
parent4466be796f228b34db25a4231692dc92813e0633 (diff)
parent3b5b999b3c06d5e715aab6215c3707609c9fb6b3 (diff)
downloadpelican-themes-c4691d06497ed2a4265c724b93cd14a318c12bb9.tar.gz
Merge pull request #245 from FooSoft/master
Display comments section only when needed on boostrap theme
-rw-r--r--bootstrap/templates/article.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap/templates/article.html b/bootstrap/templates/article.html
index 553c942..dc904ef 100644
--- a/bootstrap/templates/article.html
+++ b/bootstrap/templates/article.html
@@ -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 or TWITTER_USERNAME %}
<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 %}