Initial commit for Hugo site.

This commit is contained in:
Charish Patel
2025-02-20 08:28:31 -05:00
parent 737c448252
commit 045d0c24f3
696 changed files with 91218 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
document.addEventListener("DOMContentLoaded", function() {
// provides an escape for dollar sign chars if KaTeX is not desired
let posts = document.getElementsByClassName("post");
for (let i = 0; i < posts.length; i++) {
let children = posts[i].children
for (let j = 0; j < children.length; j++) {
if (children[j].tagName == "P") {
children[j].innerHTML = children[j].innerHTML.replace(/\\\$/g, '<span>$</span>');
}
}
}
renderMathInElement(document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false}
]
});
});