{% if site.footer_scripts %}
{% for script in site.footer_scripts %}
{% if script contains "://" %}
{% capture script_path %}{{ script }}{% endcapture %}
{% else %}
{% capture script_path %}{{ script | relative_url }}{% endcapture %}
{% endif %}
{% endfor %}
{% else %}
{% endif %}
{% if site.search == true or page.layout == "search" %}
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
{% include search/lunr-search-scripts.html %}
{%- when "google" -%}
{% include search/google-search-scripts.html %}
{%- when "algolia" -%}
{% include search/algolia-search-scripts.html %}
{%- endcase -%}
{% endif %}
{% if page.cart == true %}
{% endif %}
{% if page.support contains 'gallery' %}
{% endif %}
{% if page.support contains 'places' %}
{% endif %}
{% if page.support contains 'validate' %}
{% endif %}
{% if page.support contains 'dragula' %}
{% endif %}
{% if page.support contains 'lightbox' %}
{% include lightbox.html %}
{% endif %}
{% if page.support contains 'weather' %}
{% endif %}
{% if page.support contains 'calendar' %}
{% endif %}
{% if page.support contains 'events' %}
{% endif %}
{% if page.youtube == true %}
{% endif %}
{% if page.vimeo == true %}
{% endif %}
{% if page.comments == true %}
{% endif %}
{% if page.reviews == true %}
{% endif %}
{% if page.anchor == true %}
{% endif %}
{% if page.footnotes == true %}
{% endif %}
{% if page.chat == true %}
{% endif %}
{% if page.webmentions == true %}
{% endif %}
{% if page.support contains 'github' %}
{% endif %}
{% if page.support contains 'analytics' %}
{% endif %}
{% if page.support contains 'here-maps' %}
{% endif %}
{% if page.support contains 'file-upload' %}
{% endif %}