|
|
|
@ -44,12 +44,13 @@ In this example we will be using [KaTeX](https://katex.org/)
|
|
|
|
|
- Include the partial in your templates like so:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
{{ if .Params.paige.math }}
|
|
|
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
|
|
|
{{ partial "math.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
To enable KaTex on a per page basis include the parameter `paige.math: true` in content files
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
|
|
|
|
|
|
|
|
|