Allow mathjax to be set globally
This commit is contained in:
@@ -68,6 +68,9 @@ params:
|
|||||||
# Uncomment and change YOUR_CLOUD_NAME to the Cloud Name in your Cloudinary console
|
# Uncomment and change YOUR_CLOUD_NAME to the Cloud Name in your Cloudinary console
|
||||||
# cloudinary_cloud_name: "YOUR_CLOUD_NAME"
|
# cloudinary_cloud_name: "YOUR_CLOUD_NAME"
|
||||||
|
|
||||||
|
# Whether to add mathjax support on all pages. Alternatively, you can opt-in per page by adding `mathjax: true` in the frontmatter.
|
||||||
|
mathjax: false
|
||||||
|
|
||||||
# Whether the fade animations on the home page will be enabled
|
# Whether the fade animations on the home page will be enabled
|
||||||
animate: true
|
animate: true
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if (.Params.mathjax | default false) }}
|
{{ if or (.Params.mathjax | default false) (.Site.Params.mathjax) }}
|
||||||
|
|
||||||
{{ "<!-- MathJax -->" | safeHTML }}
|
{{ "<!-- MathJax -->" | safeHTML }}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.min.js" integrity="sha384-M5jmNxKC9EVnuqeMwRHvFuYUE8Hhp0TgBruj/GZRkYtiMrCRgH7yvv5KY+Owi7TW" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.min.js" integrity="sha384-M5jmNxKC9EVnuqeMwRHvFuYUE8Hhp0TgBruj/GZRkYtiMrCRgH7yvv5KY+Owi7TW" crossorigin="anonymous"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user