From 6657f6aa804e066e65134c23e996edb543b0070e Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Thu, 21 Jan 2016 19:13:47 -0800 Subject: [PATCH] make sure not to include jquery twice, fixes #29 --- _includes/footer-scripts.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/_includes/footer-scripts.html b/_includes/footer-scripts.html index 86f338e..b1f2532 100644 --- a/_includes/footer-scripts.html +++ b/_includes/footer-scripts.html @@ -4,12 +4,6 @@ {% endfor %} {% endif %} -{% if page.common-js %} - {% for js in page.common-js %} - - {% endfor %} -{% endif %} - {% if page.ext-js %} {% for js in page.ext-js %} @@ -22,4 +16,19 @@ {% endfor %} {% endif %} -{% include google_analytics.html %} \ No newline at end of file +{% if page.common-js %} + {% for js in page.common-js %} + + {% if js contains 'jquery' %} + + {% else %} + + {% endif %} + {% endfor %} +{% endif %} + +{% include google_analytics.html %}