From d07f038385ced6b0732ff5c97017e69113807522 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 16 Dec 2022 16:33:50 -0800 Subject: [PATCH] Remove math site param --- README.md | 1 - exampleSite/content/blog/math-typesetting.md | 3 +-- layouts/partials/paige-link.html | 2 +- layouts/partials/paige-script.html | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 53cca64d..9f2f4623 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,6 @@ $ hugo server -D Optional site parameters: ```yaml -math: true # Enable math typesetting with KaTeX paige_bootstrap_icons: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap icons paige_bootstrap_scripts: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts paige_bootstrap_styles: "/my-assets/my-bootstrap.min.css" # Use local Bootstrap styles diff --git a/exampleSite/content/blog/math-typesetting.md b/exampleSite/content/blog/math-typesetting.md index b16c08c4..0b51d289 100644 --- a/exampleSite/content/blog/math-typesetting.md +++ b/exampleSite/content/blog/math-typesetting.md @@ -21,8 +21,7 @@ In this example we will be using [KaTeX](https://katex.org/) {{ end }} ``` -- To enable KaTex globally set the parameter `paige_math` to `true` in a project's configuration -- To enable KaTex on a per page basis include the parameter `paige_math: true` in content files +To enable KaTex on a per page basis include the parameter `paige_math: true` in content files **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) diff --git a/layouts/partials/paige-link.html b/layouts/partials/paige-link.html index df2e0d72..337d413f 100644 --- a/layouts/partials/paige-link.html +++ b/layouts/partials/paige-link.html @@ -8,7 +8,7 @@ {{ else }} {{ end }} -{{ if or .Site.Params.paige_math .Params.paige_math }} +{{ if .Params.paige_math }} {{ end }} {{ if .AlternativeOutputFormats }} diff --git a/layouts/partials/paige-script.html b/layouts/partials/paige-script.html index 787c8eeb..11b75b70 100644 --- a/layouts/partials/paige-script.html +++ b/layouts/partials/paige-script.html @@ -3,7 +3,7 @@ {{ else }} {{ end }} -{{ if or .Site.Params.paige_math .Params.paige_math (.Scratch.Get "paigelistmath") }} +{{ if or .Params.paige_math (.Scratch.Get "paigelistmath") }} {{ end }}