diff options
author | wlh <wanglinghao18z@ict.ac.cn> | 2020-11-25 16:33:12 +0300 |
---|---|---|
committer | wlh <wanglinghao18z@ict.ac.cn> | 2020-11-25 16:33:12 +0300 |
commit | c414042c405993903f5bd5fb990bf727b4df39aa (patch) | |
tree | 17bca2b4ca149ada937552e1e0f2e54fabf4f58d /layouts/partials/math.html | |
parent | 111b9d34e6a5fd6da3a0365bc579d90c9923e5f6 (diff) |
add highlight margin-bottom and move js to cdn
Diffstat (limited to 'layouts/partials/math.html')
-rw-r--r-- | layouts/partials/math.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 3d83a63..8f934bd 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -1,6 +1,12 @@ +{{- if .Site.Params.noCDN -}} <link rel="stylesheet" href={{"css/katex.min.css" | absURL}}> <script defer src={{"js/katex.min.js" | absURL}}></script> <script defer src={{ "js/auto-render.min.js" | absURL }}></script> +{{- else -}} +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha256-tn6hZ2YGDv0w1/DaFL4MiUoXuAVclrtFZs13ch3TB9M=" crossorigin="anonymous"> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha256-1qhJwAgsSPVSSjlQVTewHS49eaoAbOz651dveUANVBI=" crossorigin="anonymous"></script> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha256-oEuQVLwO5Ii6subChtLbrY5gx7NDRU+UJJ9jvvau+FI=" crossorigin="anonymous"></script> +{{- end -}} <script> document.addEventListener("DOMContentLoaded", function () { renderMathInElement(document.body, { |