2017-09-12 12:27:36 -04:00
|
|
|
{% if site.footer_scripts %}
|
|
|
|
{% for script in site.footer_scripts %}
|
|
|
|
{% if script contains "://" %}
|
|
|
|
{% capture script_path %}{{ script }}{% endcapture %}
|
|
|
|
{% else %}
|
2018-03-20 11:35:36 -04:00
|
|
|
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
|
2017-09-12 12:27:36 -04:00
|
|
|
{% endif %}
|
|
|
|
<script src="{{ script_path }}"></script>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2018-03-20 11:35:36 -04:00
|
|
|
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
2018-11-14 10:54:18 -05:00
|
|
|
<script defer src="https://use.fontawesome.com/releases/v5.5.0/js/all.js" integrity="sha384-GqVMZRt5Gn7tB9D9q7ONtcp4gtHIUEW/yG7h98J7IpE3kpi+srfFyyB/04OV6pG0" crossorigin="anonymous"></script>
|
2017-09-12 12:27:36 -04:00
|
|
|
{% endif %}
|
2016-02-23 11:03:49 -05:00
|
|
|
|
2018-01-03 19:02:14 -05:00
|
|
|
{% if site.search == true or page.layout == "search" %}
|
2018-02-16 14:20:42 -05:00
|
|
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
|
|
|
{%- case search_provider -%}
|
|
|
|
{%- when "lunr" -%}
|
2018-10-04 15:48:26 -04:00
|
|
|
{% include_cached search/lunr-search-scripts.html %}
|
2018-05-15 15:42:10 -03:00
|
|
|
{%- when "google" -%}
|
2018-10-04 15:48:26 -04:00
|
|
|
{% include_cached search/google-search-scripts.html %}
|
2018-02-16 14:20:42 -05:00
|
|
|
{%- when "algolia" -%}
|
2018-10-04 15:48:26 -04:00
|
|
|
{% include_cached search/algolia-search-scripts.html %}
|
2018-02-16 14:20:42 -05:00
|
|
|
{%- endcase -%}
|
2017-11-15 21:43:31 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2018-10-24 01:32:41 +11:00
|
|
|
{% include analytics.html %}
|
|
|
|
{% include /comments-providers/scripts.html %}
|