2017-09-12 18:27:36 +02:00
|
|
|
{% if site.footer_scripts %}
|
|
|
|
{% for script in site.footer_scripts %}
|
2020-03-06 21:37:07 +01:00
|
|
|
<script src="{{ script | relative_url }}"></script>
|
2017-09-12 18:27:36 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></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 %}
|
2019-04-09 03:03:52 +02:00
|
|
|
|
|
|
|
{% if site.after_footer_scripts %}
|
|
|
|
{% for script in site.after_footer_scripts %}
|
2020-03-06 21:37:07 +01:00
|
|
|
<script src="{{ script | relative_url }}"></script>
|
2019-04-09 03:03:52 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|