File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 19
19
{{ $js := slice $fusejs $search | resources.Concat "js/bundle.js" | resources.Fingerprint "sha512" }}
20
20
< script defer type ="text/javascript " src ="{{ $js.Permalink }} " integrity ="{{ $js.Data.Integrity }} "> </ script >
21
21
{{- end }}
22
+
23
+ {{ partial "mathjax.html" . }}
Original file line number Diff line number Diff line change
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 "
19
+ async
20
+ src ="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js "
21
+ > </ script >
22
+ {{ end }}
You can’t perform that action at this time.
0 commit comments