latex only render post content, other than the whole body
This commit is contained in:
parent
d647841898
commit
36c140b28c
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
||||||
<script defer src="{{ "lib/katex/contrib/auto-render.min.js" | relURL }}"
|
<script defer src="{{ "lib/katex/contrib/auto-render.min.js" | relURL }}"
|
||||||
onload="renderMathInElement(document.body);"></script>
|
onload="renderMathInElement(document.querySelector('body .single .content'));"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with and .Site.Params.remark42 .Params.show_comments }}
|
{{ with and .Site.Params.remark42 .Params.show_comments }}
|
||||||
|
|
Loading…
Reference in a new issue