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-11-13 15:34:54 +01:00
|
|
|
<script src="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"></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 %}
|