beautifulSA-jekyll/_includes/footer-scripts.html

39 lines
982 B
HTML
Raw Normal View History

{% if layout.common-ext-js %}
{% for js in layout.common-ext-js %}
{% include ext-js.html js=js %}
{% endfor %}
{% endif %}
2015-03-02 21:06:05 +01:00
{% 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 %}
2019-08-05 09:16:37 +02:00
2020-09-12 18:59:47 +02:00
{% if site.site-js %}
{% for js in site.site-js %}
<script src="{{ js | relative_url }}"></script>
{% 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 %}