7b43e4061d
* Fix showing background img with non-empty baseurl Also switch globally to relative_url for all baseurl prepends, which is more robust than custom URL mangling * More site.baseurl -> relative_url conversion
33 lines
847 B
HTML
33 lines
847 B
HTML
{% if layout.common-ext-js %}
|
|
{% for js in layout.common-ext-js %}
|
|
{% include ext-js.html js=js %}
|
|
{% endfor %}
|
|
{% 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 %}
|
|
{% for js in layout.common-js %}
|
|
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
|
{% if js contains 'jquery' %}
|
|
<script>
|
|
if (typeof jQuery == 'undefined') {
|
|
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
|
}
|
|
</script>
|
|
{% else %}
|
|
<script src="{{ js | relative_url }}"></script>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|