diff --git a/README.md b/README.md index 6d767fd8..29787fd1 100644 --- a/README.md +++ b/README.md @@ -173,9 +173,9 @@ There is a single parameter object with sensible defaults that can be overridden ```toml [paige] +enable_math = false # Enables math typesetting for this page exclude_feeds = false # Exclude this page from feeds 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 [paige.alert] diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index 6ad0a148..2fd1ea53 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -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-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") }} {{ end }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index 4604e017..486c6630 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -2,7 +2,7 @@ {{ 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 "onload" "renderMathInElement(document.body);" "page" $page "src" "js/paige/katex/auto-render.min.js") }} {{ end }}