Demo → [hugo-paper.vercel.app](https://hugo-paper.vercel.app/)
@@ -71,12 +71,14 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # use disqus comments
monoDarkIcon = true # show monochrome dark mode icon
gravatarCdn = 'GRAVATAR_CDN_LINK' # e.g. 'https://cdn.v2ex.com/gravatar/'
graphCommentId = "YOUR_GRAPH_COMMENT_ID" # use graph comment (disqus alternative)
+ math = true # enable KaTex math typesetting globally
```
Available options to front matter:
```toml
comments = false # disable comments for a specific page
+math = true # enable KaTex math typesetting for a specific page
```
## License
diff --git a/exampleSite/content/post/math-typesetting.md b/exampleSite/content/post/math-typesetting.md
index 0ecfae1..a71637e 100644
--- a/exampleSite/content/post/math-typesetting.md
+++ b/exampleSite/content/post/math-typesetting.md
@@ -28,13 +28,7 @@ In this example we will be using [KaTeX](https://katex.org/)
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
-{{ if or .Page.Params.math .Site.Params.math }}
-
-
-
-
-{{ end }}
{{ math.inline >}}
### Examples
@@ -44,6 +38,7 @@ In this example we will be using [KaTeX](https://katex.org/)