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>
|
2019-01-01 22:02:59 +01:00
|
|
|
<script defer src="https://use.fontawesome.com/releases/v5.6.0/js/all.js" integrity="sha384-z9ZOvGHHo21RqN5De4rfJMoAxYpaVoiYhuJXPyVmSs8yn20IE3PmBM534CffwSJI" crossorigin="anonymous"></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" -%}
|
2018-10-04 21:48:26 +02:00
|
|
|
{% include_cached search/lunr-search-scripts.html %}
|
2018-05-15 20:42:10 +02:00
|
|
|
{%- when "google" -%}
|
2018-10-04 21:48:26 +02:00
|
|
|
{% include_cached search/google-search-scripts.html %}
|
2018-02-16 20:20:42 +01:00
|
|
|
{%- when "algolia" -%}
|
2018-10-04 21:48:26 +02:00
|
|
|
{% include_cached search/algolia-search-scripts.html %}
|
2018-02-16 20:20:42 +01:00
|
|
|
{%- endcase -%}
|
2017-11-15 20:43:31 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-10-23 16:32:41 +02:00
|
|
|
{% include analytics.html %}
|
|
|
|
{% include /comments-providers/scripts.html %}
|