diff --git a/README.md b/README.md index a010275b..53cca64d 100644 --- a/README.md +++ b/README.md @@ -188,8 +188,8 @@ Optional page parameters: ```yaml link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title -math: true # Enable math typesetting with KaTeX paige_hide_search: true # Don't include this page in search results +paige_math: true # Enable math typesetting with KaTeX paige_toc: true # Show a table of contents if there are any headers ``` diff --git a/exampleSite/content/blog/math-typesetting.md b/exampleSite/content/blog/math-typesetting.md index 02172cad..b16c08c4 100644 --- a/exampleSite/content/blog/math-typesetting.md +++ b/exampleSite/content/blog/math-typesetting.md @@ -3,7 +3,7 @@ author: Hugo Authors title: Math Typesetting date: 2019-03-08 description: A brief guide to setup KaTeX. -math: true +paige_math: true --- Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. @@ -21,8 +21,8 @@ In this example we will be using [KaTeX](https://katex.org/) {{ end }} ``` -- To enable KaTex globally set the parameter `math` to `true` in a project's configuration -- To enable KaTex on a per page basis include the parameter `math: true` in content files +- 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 **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 e00cf183..df2e0d72 100644 --- a/layouts/partials/paige-link.html +++ b/layouts/partials/paige-link.html @@ -8,7 +8,7 @@ {{ else }} {{ end }} -{{ if or .Site.Params.math .Params.math }} +{{ if or .Site.Params.paige_math .Params.paige_math }} {{ end }} {{ if .AlternativeOutputFormats }} diff --git a/layouts/partials/paige-script.html b/layouts/partials/paige-script.html index dbf03457..787c8eeb 100644 --- a/layouts/partials/paige-script.html +++ b/layouts/partials/paige-script.html @@ -3,7 +3,7 @@ {{ else }} {{ end }} -{{ if or .Site.Params.math .Params.math (.Scratch.Get "paigelistmath") }} +{{ if or .Site.Params.paige_math .Params.paige_math (.Scratch.Get "paigelistmath") }} {{ end }}