fix: qed centering

This commit is contained in:
Barrett Ruth 2025-10-11 12:16:59 -04:00
parent b6c972f9d2
commit e140fef7e8
2 changed files with 2 additions and 4 deletions

View file

@ -2,9 +2,8 @@ document.addEventListener("DOMContentLoaded", function () {
const katexParagraphs = document.querySelectorAll("article p");
katexParagraphs.forEach((p) => {
const katexSpan = p.querySelector(".katex");
if (!katexSpan || katexSpan.textContent.indexOf("\\blacksquare") != -1)
return;
const katexSpan = p.querySelector(".katex-display");
if (!katexSpan) return;
const clone = p.cloneNode(true);
clone.querySelector(".katex").remove();

View file

@ -26,7 +26,6 @@ const category = Astro.params.category;
const { Content } = await post.render();
const pageTitle = `${category}/${post.data.title ?? post.slug}`;
console.log(Astro.props);
if (post.data?.redirect) {
return Astro.redirect(post.data.redirect, 301);
}