diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2023-09-25 15:33:31 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2023-09-25 15:33:31 +0200 |
| commit | cf36eceb77364611c1d76cad2cea5c73ee2d5f8d (patch) | |
| tree | e1f3dde6c13408bcdd47530aee49c67e9d1f61cf /layouts/partials/custom_head.html | |
| parent | 0b044b098e33c8cbb455ddae024949f08ba09039 (diff) | |
Added the blog posts from the previous site
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 |
