2017-09-12 18:27:36 +02:00
|
|
|
{% if site.footer_scripts %}
|
|
|
|
{% for script in site.footer_scripts %}
|
|
|
|
{% if script contains "://" %}
|
|
|
|
{% capture script_path %}{{ script }}{% endcapture %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
|
2017-09-12 18:27:36 +02:00
|
|
|
{% endif %}
|
|
|
|
<script src="{{ script_path }}"></script>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
2018-05-03 20:24:25 +02:00
|
|
|
<script src="https://use.fontawesome.com/releases/v5.0.11/js/all.js"></script>
|
2017-09-12 18:27:36 +02:00
|
|
|
{% endif %}
|
2016-02-23 17:03:49 +01:00
|
|
|
|
2018-01-04 01:02:14 +01:00
|
|
|
{% if site.search == true or page.layout == "search" %}
|
2018-02-16 20:20:42 +01:00
|
|
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
|
|
|
{%- case search_provider -%}
|
|
|
|
{%- when "lunr" -%}
|
|
|
|
{% include search/lunr-search-scripts.html %}
|
|
|
|
{%- when "algolia" -%}
|
|
|
|
{% include search/algolia-search-scripts.html %}
|
|
|
|
{%- endcase -%}
|
2017-11-15 20:43:31 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2016-03-11 03:13:01 +01:00
|
|
|
{% include analytics.html %}
|
2016-03-23 17:55:36 +01:00
|
|
|
{% include /comments-providers/scripts.html %}
|