Mount correct Katex files
This commit is contained in:
@@ -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:
|
||||
|
@@ -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"]
|
||||
|
@@ -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 }}
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user