aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-23 20:40:53 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-23 20:40:53 +0100
commit976f619b2f86d586e77110c480699037b2b67a47 (patch)
treece8bb845d39d881446d3d54b82d5d8c4bf44081c /layouts/shortcodes
parent61b13ba58338944a6d90fb44d0a342af91ef0727 (diff)
Update mermaid to 8.4.8, move KaTeX to static folder
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/katex.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html
index ce7a6d9..cc98a7d 100644
--- a/layouts/shortcodes/katex.html
+++ b/layouts/shortcodes/katex.html
@@ -1,9 +1,8 @@
{{ if not (.Page.Scratch.Get "katex") }}
<!-- Include katext only first time -->
-<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="renderMathInElement(document.body);"></script>
+<link rel="stylesheet" href="{{ "katex/katex.min.css" | relURL }}">
+<script defer src="{{ "katex/katex.min.js" | relURL }}"></script>
+<script defer src="{{ "katex/auto-render.min.js" | relURL }}" onload="renderMathInElement(document.body);"></script>
{{ .Page.Scratch.Set "katex" true }}
{{ end }}