mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
Fix the formulas bug, make it inline possible (#17)
Fix the formulas bug, make it inline possible
This commit is contained in:
commit
088975a8bb
2 changed files with 13 additions and 0 deletions
|
@ -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>
|
Loading…
Reference in a new issue