diff options
author | Alex Yatskov <alex@foosoft.net> | 2014-09-01 11:27:05 +0900 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2014-09-01 11:27:05 +0900 |
commit | cafd88d134e98b0ef6503fdb58f3b165b9f484db (patch) | |
tree | e5e3241fc32359978851bbfbed59b3ee8e9d803c /bootstrap | |
parent | 62c7297e84ee5fc00ae682c90502fbbc9f43c659 (diff) | |
download | pelican-themes-cafd88d134e98b0ef6503fdb58f3b165b9f484db.tar.gz |
Display comments section on articles only if DISQUS_SITENAME or FACEBOOK_APPID variables are set (for the the boostrap theme)
Diffstat (limited to 'bootstrap')
-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..ebbf54c 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 %} <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 %} |