Skip to content

Commit

Permalink
latex only render post content, other than the whole body
Browse files Browse the repository at this point in the history
  • Loading branch information
leafee98 committed Jan 23, 2024
1 parent d647841 commit 36c140b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<!-- To automatically render math in text elements, include the auto-render extension: -->
<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 }}

{{ with and .Site.Params.remark42 .Params.show_comments }}
Expand Down

0 comments on commit 36c140b

Please sign in to comment.