-
Notifications
You must be signed in to change notification settings - Fork 4
/
custom.html
37 lines (37 loc) · 1.78 KB
/
custom.html
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
<link rel="shortcut icon" type="image/png" href="/assets/favicon.png">
<meta name="theme-color" content="#EDEDED">
<script>
const funcOnPageLoad = function() { document.body.classList.add("loaded"); };
document.addEventListener('DOMContentLoaded', funcOnPageLoad);
</script>
{% if page.mathjax %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
{% elsif page.katex %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="katexReady();"></script>
<script>
function katexReady() {
let renderArea = document.querySelector("section.page__content");
renderMathInElement(renderArea, {delimiters: [{left: "$$", right: "$$", display: true}]});
renderMathInElement(renderArea, {delimiters: [{left: "$", right: "$", display: false}]});
}
</script>
{% endif %}
{% if page.noindex %}<meta name="robots" content="noindex">{% endif %}
<!--
Minimal Mistakes layout: {{ page.layout }}
Page Path: {{ page.path }}
Page Type: {{ page.type }}
-->