2016-02-02 03:07:13 +01:00
|
|
|
{% if layout.common-ext-js %}
|
|
|
|
{% for js in layout.common-ext-js %}
|
2017-01-28 00:19:00 +01:00
|
|
|
{% include ext-js.html js=js %}
|
2015-03-03 02:10:41 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2015-03-02 21:06:05 +01:00
|
|
|
|
2016-02-02 03:07:13 +01:00
|
|
|
{% if layout.common-js %}
|
|
|
|
{% for js in layout.common-js %}
|
2016-01-22 04:13:47 +01:00
|
|
|
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
|
|
|
{% if js contains 'jquery' %}
|
|
|
|
<script>
|
2020-05-02 08:10:20 +02:00
|
|
|
if (typeof jQuery == 'undefined') {
|
2019-06-08 07:34:33 +02:00
|
|
|
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
2020-05-02 08:10:20 +02:00
|
|
|
}
|
2016-01-22 04:13:47 +01:00
|
|
|
</script>
|
|
|
|
{% else %}
|
2019-06-08 07:34:33 +02:00
|
|
|
<script src="{{ js | relative_url }}"></script>
|
2016-01-22 04:13:47 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2019-08-05 09:16:37 +02:00
|
|
|
|
|
|
|
{% if page.ext-js %}
|
|
|
|
{% for js in page.ext-js %}
|
|
|
|
{% include ext-js.html js=js %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.js %}
|
|
|
|
{% for js in page.js %}
|
|
|
|
<script src="{{ js | relative_url }}"></script>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|