Mount correct Katex files

This commit is contained in:
Will Faught
2023-03-17 23:36:59 -07:00
parent f3f0201cd2
commit 6c272cddb9
4 changed files with 9 additions and 9 deletions

View File

@@ -17,7 +17,7 @@
{{ partial "paige/link.html" (dict "href" "_paige/bootstrap-icons/bootstrap-icons.css") }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/link.html" (dict "href" "paige/katex/katex.css") }}
{{ partial "paige/link.html" (dict "href" "_paige/katex/katex.min.css") }}
{{ end }}
{{ if .AlternativeOutputFormats }}

View File

@@ -34,8 +34,8 @@ addEventListener("resize", paigeResize);
{{ partial "paige/script.html" (dict "src" "_paige/bootstrap/bootstrap.bundle.js") }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/script.html" (dict "src" "paige/katex/katex.js") }}
{{ partial "paige/script.html" (dict "onload" "renderMathInElement(document.body);" "src" "paige/katex/auto-render.js") }}
{{ partial "paige/script.html" (dict "src" "_paige/katex/katex.min.js") }}
{{ partial "paige/script.html" (dict "onload" "renderMathInElement(document.body);" "src" "_paige/katex/auto-render.min.js") }}
{{ end }}
{{ partial "paige/analytics.html" $page }}