diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2014-09-24 23:57:43 +0200 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2014-09-24 23:57:43 +0200 |
commit | c4691d06497ed2a4265c724b93cd14a318c12bb9 (patch) | |
tree | 50b519c54e912f4b0be8c65d5a4ce7a091d4c739 | |
parent | 4466be796f228b34db25a4231692dc92813e0633 (diff) | |
parent | 3b5b999b3c06d5e715aab6215c3707609c9fb6b3 (diff) | |
download | pelican-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.html | 4 |
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 %} |