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-06-28 01:19:56 +02:00
|
|
|
<script src="https://kit.fontawesome.com/4eee35f757.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" -%}
|
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 %}
|
|
|
|
{% if script contains "://" %}
|
|
|
|
{% capture script_path %}{{ script }}{% endcapture %}
|
|
|
|
{% else %}
|
|
|
|
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
<script src="{{ script_path }}"></script>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|