summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts/partials/mathjax.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/new_theme/layouts/partials/mathjax.html')
-rw-r--r--themes/new_theme/layouts/partials/mathjax.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/new_theme/layouts/partials/mathjax.html b/themes/new_theme/layouts/partials/mathjax.html
new file mode 100644
index 0000000..8a5ea04
--- /dev/null
+++ b/themes/new_theme/layouts/partials/mathjax.html
@@ -0,0 +1,3 @@
+{{ if and .IsPage (eq (.Param "mathjax") true) }}
+<script src="{{ .Param "mathjaxPath" | default "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js" }}{{ with .Param "mathjaxConfig" | default "TeX-AMS-MML_HTMLorMML" }}?config={{ . }}{{ end }}" async></script>
+{{ end }} \ No newline at end of file