From 6e8632770cb8f0db6c5bcc3e18ed0cc004b6b3a8 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 29 May 2014 20:42:56 +0200 Subject: [PATCH] pelican-bootstrap3: add colorbox support --- pelican-bootstrap3/templates/base.html | 27 ++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index bfbaa62..2cb3654 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -13,6 +13,17 @@ {% endif %} + {# ColorBox, for photo galleries #} + {% if article %} + {% if article.album %} + {% if COLORBOX_THEME %} + + {% else %} + + {% endif %} + {% endif %} + {% endif %} + {# Open Graph tags #} {% if USE_OPEN_GRAPH is not defined %} {% set USE_OPEN_GRAPH = True %} @@ -130,11 +141,11 @@ {% block content %} {% endblock %} - {% if not HIDE_SIDEBAR %} + {% if not HIDE_SIDEBAR %} - {% endif %} + {% endif %} {% include 'includes/footer.html' %} @@ -147,6 +158,18 @@ +{# ColorBox, for photo galleries #} +{% if article %} + {% if article.album %} + + + {% endif %} +{% endif %} + {% include 'includes/github-js.html' %} {% include 'includes/disqus_script.html' %} {% include 'includes/ga.html' %}