We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3c63e7 + b279cb6 commit e127d58Copy full SHA for e127d58
layouts/partials/head.html
@@ -19,3 +19,5 @@
19
{{ $js := slice $fusejs $search | resources.Concat "js/bundle.js" | resources.Fingerprint "sha512" }}
20
<script defer type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
21
{{- end }}
22
+
23
+{{ partial "math.html" . }}
layouts/partials/math.html
@@ -0,0 +1,22 @@
1
+{{ if .Params.math }}
2
+<script>
3
+ MathJax = {
4
+ tex: {
5
+ inlineMath: [["$", "$"]],
6
+ },
7
+ displayMath: [
8
+ ["$$", "$$"],
9
+ ["\[\[", "\]\]"],
10
+ ],
11
+ svg: {
12
+ fontCache: "global",
13
14
+ };
15
+</script>
16
+<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
17
+<script
18
+ id="MathJax-script"
+ async
+ src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
+></script>
+{{ end }}
0 commit comments