{%- if site.footer_scripts -%}

{%- for script in site.footer_scripts -%}
  {%- if script contains "://" -%}
    {%- capture script_path %}{{ script }}{% endcapture -%}
  {%- else -%}
    {%- capture script_path %}{{ script | absolute_url }}{% endcapture -%}
  {%- endif -%}
  <script src="{{ script_path }}"></script>
{%- endfor -%}

{%- else -%}

<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
<script src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>

{%- endif -%}

{%- if jekyll.environment == 'production' and site.google_analytics -%}

<script>
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', '{{ site.google_analytics }}', 'auto');
  ga('send', 'pageview');
}
</script>

{%- endif %}

{% if site.mathjax == true %} <!– MathJax –> <script src=“cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML”>> {% endif %}

{%- if page.layout == “search” -%}

{% include lunr-search-scripts.html %}

{%- endif -%}