2017-09-12 12:27:36 -04:00
|
|
|
{% if site.footer_scripts %}
|
|
|
|
{% for script in site.footer_scripts %}
|
2020-03-07 04:37:07 +08:00
|
|
|
<script src="{{ script | relative_url }}"></script>
|
2017-09-12 12:27:36 -04:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2018-03-20 11:35:36 -04:00
|
|
|
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
2019-06-27 19:19:56 -04:00
|
|
|
<script src="https://kit.fontawesome.com/4eee35f757.js"></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 %}
|
2019-04-08 21:03:52 -04:00
|
|
|
|
|
|
|
{% if site.after_footer_scripts %}
|
|
|
|
{% for script in site.after_footer_scripts %}
|
2020-03-07 04:37:07 +08:00
|
|
|
<script src="{{ script | relative_url }}"></script>
|
2019-04-08 21:03:52 -04:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|