1+ {%- if site.footer_scripts -%}
2+   {%- for script in site.footer_scripts -%}
3+     {%- if script contains "://" -%}
4+       {%- capture script_path %}{{ script }}{% endcapture -%}
5+     {%- else -%}
6+       {%- capture script_path %}{{ script | absolute_url }}{% endcapture -%}
7+     {%- endif -%}
8+     < script  src ="{{ script_path }} "> </ script > 
9+   {%- endfor -%}
10+ {%- else -%}
11+   < script  src ="https://code.jquery.com/jquery-3.3.1.min.js " integrity ="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8= " crossorigin ="anonymous "> </ script > 
12+   < script  src ="{{ '/assets/js/main.min.js' | relative_url }} "> </ script > 
13+   < script  src ="https://use.fontawesome.com/releases/v5.0.12/js/all.js "> </ script > 
14+ {%- endif -%}
15+ 
16+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
17+     <!-- leewc: Override google-analytics from main theme given main theme is not maintained --> 
18+     {% include google-analytics-custom.html %}
19+ {%- endif %}
20+ 
21+ {% if site.mathjax == true or site.mathjax.enable == true %}
22+ <!-- MathJax --> 
23+ {% capture mathjaxjs %}https://cdn.jsdelivr.net/npm/mathjax@3/es5/{{ site.mathjax.combo | default: "tex-svg" }}.js{% endcapture %}
24+ < script > 
25+ // http://docs.mathjax.org/en/latest/upgrading/v2.html 
26+ MathJax  =  { 
27+   tex : { 
28+       tags : "{{ site.mathjax.tags | default: 'ams' }}"     // eq numbering options: none, ams, all 
29+   } , 
30+   options : { 
31+     renderActions : { 
32+       // for mathjax 3, handle <script "math/tex"> blocks inserted by kramdown 
33+       find : [ 10 ,  function  ( doc )  { 
34+         for  ( const  node  of  document . querySelectorAll ( 'script[type^="math/tex"]' ) )  { 
35+           const  display  =  ! ! node . type . match ( / ;   * m o d e = d i s p l a y / ) ; 
36+           const  math  =  new  doc . options . MathItem ( node . textContent ,  doc . inputJax [ 0 ] ,  display ) ; 
37+           const  text  =  document . createTextNode ( '' ) ; 
38+           node . parentNode . replaceChild ( text ,  node ) ; 
39+           math . start  =  { node : text ,  delim : '' ,  n : 0 } ; 
40+           math . end  =  { node : text ,  delim : '' ,  n : 0 } ; 
41+           doc . math . push ( math ) ; 
42+         } 
43+       } ,  '' ] 
44+     } 
45+   } 
46+ } 
47+ </ script > 
48+ 
49+ < script  type ="text/javascript " id ="MathJax-script " async  src ="{{ mathjaxjs }} "> </ script > 
50+ {% endif %}
51+ 
52+ {%- if page.layout == "search" -%}
53+   {% include lunr-search-scripts.html %}
54+ {%- endif -%}
0 commit comments