Rename paige.math to paige.katex
This commit is contained in:
20
README.md
20
README.md
@@ -251,6 +251,16 @@ paige:
|
|||||||
url: "me.jpg" # A page, site, or remote resource glob
|
url: "me.jpg" # A page, site, or remote resource glob
|
||||||
hide_credit_data: true # Don't credit this project in a data attribute
|
hide_credit_data: true # Don't credit this project in a data attribute
|
||||||
hide_credit_link: true # Don't credit this project in the footer
|
hide_credit_link: true # Don't credit this project in the footer
|
||||||
|
katex:
|
||||||
|
autorender:
|
||||||
|
script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash
|
||||||
|
script_src: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js" # Local or remote file
|
||||||
|
script:
|
||||||
|
script_integrity: "sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O" # File integrity hash
|
||||||
|
script_src: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js" # Local or remote file
|
||||||
|
style:
|
||||||
|
link_href: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" # Local or remote file
|
||||||
|
link_integrity: "sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" # File integrity hash
|
||||||
list:
|
list:
|
||||||
authors:
|
authors:
|
||||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||||
@@ -282,16 +292,6 @@ paige:
|
|||||||
title:
|
title:
|
||||||
class: "text-center" # Default is "text-center"
|
class: "text-center" # Default is "text-center"
|
||||||
hide: false # Default is false
|
hide: false # Default is false
|
||||||
math:
|
|
||||||
autorender:
|
|
||||||
script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash
|
|
||||||
script_src: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js" # Local or remote file
|
|
||||||
script:
|
|
||||||
script_integrity: "sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O" # File integrity hash
|
|
||||||
script_src: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js" # Local or remote file
|
|
||||||
style:
|
|
||||||
link_href: "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" # Local or remote file
|
|
||||||
link_integrity: "sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" # File integrity hash
|
|
||||||
menu_breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
|
menu_breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
|
||||||
menu_style: "pills" # Menu item style; must be "links" or "pills"; default is "pills"
|
menu_style: "pills" # Menu item style; must be "links" or "pills"; default is "pills"
|
||||||
metadata_max_width: "100ch" # Page metadata max width
|
metadata_max_width: "100ch" # Page metadata max width
|
||||||
|
@@ -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)) }}
|
{{ 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
|
{{ 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")
|
"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.math.style.link_integrity" | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=")
|
"integrity" ($page.Param "paige.katex.style.link_integrity" | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=")
|
||||||
"raw" true
|
"raw" true
|
||||||
) }}
|
) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -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)) }}
|
{{ 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
|
{{ partial "paige/script.html" (dict
|
||||||
"integrity" ($page.Param "paige.math.script.script_integrity")
|
"integrity" ($page.Param "paige.katex.script.script_integrity")
|
||||||
"raw" ($page.Param "paige.math.script.raw")
|
"raw" ($page.Param "paige.katex.script.raw")
|
||||||
"src" ($page.Param "paige.math.script.script_src" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js")
|
"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
|
{{ 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);"
|
"onload" "renderMathInElement(document.body);"
|
||||||
"raw" ($page.Param "paige.math.autorender.raw")
|
"raw" ($page.Param "paige.katex.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")
|
"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 }}
|
{{ end }}
|
||||||
{{ if site.GoogleAnalytics }}
|
{{ if site.GoogleAnalytics }}
|
||||||
|
Reference in New Issue
Block a user