Rename math parameter to paige_math
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
{{ else }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ if or .Site.Params.math .Params.math }}
|
||||
{{ if or .Site.Params.paige_math .Params.paige_math }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" integrity="sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ if .AlternativeOutputFormats }}
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{{ else }}
|
||||
<script crossorigin="anonymous" defer integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{{ end }}
|
||||
{{ if or .Site.Params.math .Params.math (.Scratch.Get "paigelistmath") }}
|
||||
{{ if or .Site.Params.paige_math .Params.paige_math (.Scratch.Get "paigelistmath") }}
|
||||
<script crossorigin="anonymous" defer integrity="sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js"></script>
|
||||
<script crossorigin="anonymous" defer integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" onload="renderMathInElement(document.body);" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js"></script>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user