Rename paige.math to enable_math
This commit is contained in:
@@ -173,9 +173,9 @@ There is a single parameter object with sensible defaults that can be overridden
|
|||||||
```toml
|
```toml
|
||||||
[paige]
|
[paige]
|
||||||
|
|
||||||
|
enable_math = false # Enables math typesetting for this page
|
||||||
exclude_feeds = false # Exclude this page from feeds
|
exclude_feeds = false # Exclude this page from feeds
|
||||||
exclude_search = false # Exclude the page from search
|
exclude_search = false # Exclude the page from search
|
||||||
math = false # Enables math typesetting for this page
|
|
||||||
style = "" # CSS included at the end of the stylesheet, before style-last.css, for this page
|
style = "" # CSS included at the end of the stylesheet, before style-last.css, for this page
|
||||||
|
|
||||||
[paige.alert]
|
[paige.alert]
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap/paige.scss" "page" $page "sass" true "template" true "context" $context) }}
|
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap/paige.scss" "page" $page "sass" true "template" true "context" $context) }}
|
||||||
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap-icons/bootstrap-icons.css" "page" $page) }}
|
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap-icons/bootstrap-icons.css" "page" $page) }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.math" }}
|
{{ if $page.Param "paige.enable_math" }}
|
||||||
{{ partial "paige/tag-link.html" (dict "href" "css/paige/katex/katex.min.css") }}
|
{{ partial "paige/tag-link.html" (dict "href" "css/paige/katex/katex.min.css") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/bootstrap/bootstrap.bundle.js") }}
|
{{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/bootstrap/bootstrap.bundle.js") }}
|
||||||
|
|
||||||
{{ if $page.Param "paige.math" }}
|
{{ if $page.Param "paige.enable_math" }}
|
||||||
{{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/katex/katex.min.js") }}
|
{{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/katex/katex.min.js") }}
|
||||||
{{ partial "paige/tag-script.html" (dict "onload" "renderMathInElement(document.body);" "page" $page "src" "js/paige/katex/auto-render.min.js") }}
|
{{ partial "paige/tag-script.html" (dict "onload" "renderMathInElement(document.body);" "page" $page "src" "js/paige/katex/auto-render.min.js") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user