Rename paige.math to paige.katex

This commit is contained in:
Will Faught
2023-02-05 11:22:49 -08:00
parent eea030eef7
commit 3d361ff1c2
3 changed files with 18 additions and 18 deletions

View File

@@ -22,8 +22,8 @@
) }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/link.html" (dict
"href" ($page.Param "paige.math.style.link_href" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css")
"integrity" ($page.Param "paige.math.style.link_integrity" | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=")
"href" ($page.Param "paige.katex.style.link_href" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css")
"integrity" ($page.Param "paige.katex.style.link_integrity" | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=")
"raw" true
) }}
{{ end }}

View File

@@ -55,15 +55,15 @@ addEventListener("resize", paigeResize);
) }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/script.html" (dict
"integrity" ($page.Param "paige.math.script.script_integrity")
"raw" ($page.Param "paige.math.script.raw")
"src" ($page.Param "paige.math.script.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js")
"integrity" ($page.Param "paige.katex.script.script_integrity")
"raw" ($page.Param "paige.katex.script.raw")
"src" ($page.Param "paige.katex.script.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js")
) }}
{{ partial "paige/script.html" (dict
"integrity" ($page.Param "paige.math.autorender.script_integrity")
"integrity" ($page.Param "paige.katex.autorender.script_integrity")
"onload" "renderMathInElement(document.body);"
"raw" ($page.Param "paige.math.autorender.raw")
"src" ($page.Param "paige.math.autorender.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js")
"raw" ($page.Param "paige.katex.autorender.raw")
"src" ($page.Param "paige.katex.autorender.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js")
) }}
{{ end }}
{{ if site.GoogleAnalytics }}