Fix the formulas bug, make it inline possible (#17)
Fix the formulas bug, make it inline possible
This commit is contained in:
@@ -54,3 +54,6 @@
|
|||||||
{{ $res := resources.Get "css/lib/animate/animate.min.css" | resources.Minify -}}
|
{{ $res := resources.Get "css/lib/animate/animate.min.css" | resources.Minify -}}
|
||||||
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
|
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if or .Params.math .Site.Params.math }}
|
||||||
|
{{ partial "math.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|||||||
10
layouts/partials/math.html
Normal file
10
layouts/partials/math.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
renderMathInElement(document.body, {
|
||||||
|
delimiters: [
|
||||||
|
{left: "$$", right: "$$", display: true},
|
||||||
|
{left: "$", right: "$", display: false}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user