Repository navigation
Expand file tree
/
Copy pathscripts.html
More file actions
78 lines (73 loc) · 3.22 KB
/
Copy pathscripts.html
File metadata and controls
78 lines (73 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!-- Import map: central registry for ES module URLs (must be before any module scripts) -->
<script type="importmap">
{
"imports": {
"jquery": "https://esm.sh/jquery@3.7.1",
"lity": "https://esm.sh/gh/jsor/lity",
"jquery-smooth-scroll": "https://esm.sh/jquery-smooth-scroll@2.2.0"
}
}
</script>
{%- 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 -%}
<!-- Font Awesome -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/js/all.min.js" integrity="sha512-b+nQTCdtTBIRIbraqNEwsjB6UvL3UEMkXnhzd8awtCYh0Kcsjl9uEgwVFVbhoj3uu1DO1ZMacNvLoyJJiNfcvg==" crossorigin="anonymous"></script>
<!-- Table of Contents toggle (ES module) -->
<script type="module" src="{{ '/assets/js/plugins/table-of-contents.js' | relative_url }}"></script>
<!-- Main site JS (ES module) -->
<script type="module" src="{{ '/assets/js/main.js' | relative_url }}"></script>
{%- endif -%}
<!-- Remember visitors arriving from the portfolio, independently of CDN scripts. -->
<script type="module" src="{{ '/assets/js/portfolio.js' | relative_url }}"></script>
{%- 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 or site.mathjax.enable == true %}
<!-- MathJax -->
{% capture mathjaxjs %}https://esm.sh/mathjax@3/es5/{{ site.mathjax.combo | default: "tex-svg" }}.js{% endcapture %}
<script>
// http://docs.mathjax.org/en/latest/upgrading/v2.html
MathJax = {
tex: {
tags: "{{ site.mathjax.tags | default: 'ams' }}" // eq numbering options: none, ams, all
},
options: {
renderActions: {
// for mathjax 3, handle <script "math/tex"> blocks inserted by kramdown
find: [10, function (doc) {
for (const node of document.querySelectorAll('script[type^="math/tex"]')) {
const display = !!node.type.match(/; *mode=display/);
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
const text = document.createTextNode('');
node.parentNode.replaceChild(text, node);
math.start = {node: text, delim: '', n: 0};
math.end = {node: text, delim: '', n: 0};
doc.math.push(math);
}
}, '']
}
}
}
</script>
<script type="module" id="MathJax-script" async src="{{ mathjaxjs }}"></script>
{% endif %}
{%- if page.layout == "search" -%}
{% include lunr-search-scripts.html %}
{%- endif -%}