From 9197b79d9d4d96ca6e2e935814ca92079bd71791 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Thu, 4 Feb 2016 16:40:56 -0800 Subject: [PATCH] update footer scripts to try to fix bug; related to #33 --- _includes/footer-scripts.html | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/_includes/footer-scripts.html b/_includes/footer-scripts.html index 9e02b3a..e8da1e8 100644 --- a/_includes/footer-scripts.html +++ b/_includes/footer-scripts.html @@ -1,21 +1,32 @@ - - - - - + +{% if page.common-ext-js %} + {% for js in page.common-ext-js %} + + {% endfor %} +{% endif %} {% if layout.common-ext-js %} {% for js in layout.common-ext-js %} {% endfor %} {% endif %} +{% if page.ext-js %} + {% for js in page.ext-js %} + + {% endfor %} +{% endif %} {% if layout.ext-js %} {% for js in layout.ext-js %} {% endfor %} {% endif %} +{% if page.js %} + {% for js in page.js %} + + {% endfor %} +{% endif %} {% if layout.js %} {% for js in layout.js %} @@ -36,5 +47,19 @@ {% endif %} {% endfor %} {% endif %} +{% if page.common-js %} + {% for js in page.common-js %} + + {% if js contains 'jquery' %} + + {% else %} + + {% endif %} + {% endfor %} +{% endif %} {% include google_analytics.html %}