diff --git a/README.md b/README.md index aadf581e..c4f30161 100644 --- a/README.md +++ b/README.md @@ -183,14 +183,14 @@ module: target: "assets/_paige/bootstrap-icons" includeFiles: ["/bootstrap-icons.css"] # Katex - - source: "node_modules/katex/contrib/auto-render" + - source: "node_modules/katex/dist/contrib" target: "assets/_paige/katex" - includeFiles: ["/auto-render.js"] + includeFiles: ["/auto-render.min.js"] - source: "node_modules/katex/dist/fonts" target: "static/_paige/katex/fonts" - source: "node_modules/katex/dist" target: "assets/_paige/katex" - includeFiles: ["/katex.css", "/katex.js"] + includeFiles: ["/katex.min.css", "/katex.min.js"] ``` Install: diff --git a/config.yaml b/config.yaml index ceb3d6ed..c714d477 100644 --- a/config.yaml +++ b/config.yaml @@ -36,11 +36,11 @@ module: target: "assets/_paige/bootstrap-icons" includeFiles: ["/bootstrap-icons.css"] # Katex - - source: "node_modules/katex/contrib/auto-render" + - source: "node_modules/katex/dist/contrib" target: "assets/_paige/katex" - includeFiles: ["/auto-render.js"] + includeFiles: ["/auto-render.min.js"] - source: "node_modules/katex/dist/fonts" target: "static/_paige/katex/fonts" - source: "node_modules/katex/dist" target: "assets/_paige/katex" - includeFiles: ["/katex.css", "/katex.js"] + includeFiles: ["/katex.min.css", "/katex.min.js"] diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index 35dad2f3..c5b71b1f 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -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 }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index 4853655c..eb5617a6 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -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 }}