8fc9bccda8
* Allow `<head>` and footer scripts to be changed via config * Update JavaScript documentation Close #1238
15 lines
505 B
HTML
15 lines
505 B
HTML
{% if site.footer_scripts %}
|
|
{% for script in site.footer_scripts %}
|
|
{% if script contains "://" %}
|
|
{% capture script_path %}{{ script }}{% endcapture %}
|
|
{% else %}
|
|
{% capture script_path %}{{ script | absolute_url }}{% endcapture %}
|
|
{% endif %}
|
|
<script src="{{ script_path }}"></script>
|
|
{% endfor %}
|
|
{% else %}
|
|
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
|
|
{% endif %}
|
|
|
|
{% include analytics.html %}
|
|
{% include /comments-providers/scripts.html %}
|