diff options
Diffstat (limited to 'layouts/partials/custom_head.html')
| -rw-r--r-- | layouts/partials/custom_head.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 0000000..97c539e --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,12 @@ +{{ if .Params.math }}{{ partial "katex.html" . }}{{ end }} + +<script> + document.addEventListener("DOMContentLoaded", function() { + renderMathInElement(document.body, { + delimiters: [ + {left: "$$", right: "$$", display: true}, + {left: "$", right: "$", display: false} + ] + }); + }); +</script>
\ No newline at end of file |
