Reorder scripts in footer (#522)

This commit is contained in:
Daniel Petrov 2019-08-05 09:16:37 +02:00 committed by Dean Attali
parent f40baa5aa7
commit 590651fbda

View File

@ -4,18 +4,6 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% 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 %}
{% if layout.common-js %} {% if layout.common-js %}
{% for js in layout.common-js %} {% for js in layout.common-js %}
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! --> <!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
@ -30,3 +18,15 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% 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 %}