Fix the formulas bug, make it inline possible

This commit is contained in:
KevinQiu 2019-12-11 05:32:24 +08:00
parent b556dfccc8
commit f689d37d4f
2 changed files with 13 additions and 0 deletions

View file

@ -53,4 +53,7 @@
{{ else -}}
{{ $res := resources.Get "css/lib/animate/animate.min.css" | resources.Minify -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{ end }}
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}

View file

@ -0,0 +1,10 @@
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false}
]
});
});
</script>