fix: qed centering
This commit is contained in:
parent
b6c972f9d2
commit
e140fef7e8
2 changed files with 2 additions and 4 deletions
|
|
@ -2,9 +2,8 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
const katexParagraphs = document.querySelectorAll("article p");
|
const katexParagraphs = document.querySelectorAll("article p");
|
||||||
|
|
||||||
katexParagraphs.forEach((p) => {
|
katexParagraphs.forEach((p) => {
|
||||||
const katexSpan = p.querySelector(".katex");
|
const katexSpan = p.querySelector(".katex-display");
|
||||||
if (!katexSpan || katexSpan.textContent.indexOf("\\blacksquare") != -1)
|
if (!katexSpan) return;
|
||||||
return;
|
|
||||||
|
|
||||||
const clone = p.cloneNode(true);
|
const clone = p.cloneNode(true);
|
||||||
clone.querySelector(".katex").remove();
|
clone.querySelector(".katex").remove();
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ const category = Astro.params.category;
|
||||||
const { Content } = await post.render();
|
const { Content } = await post.render();
|
||||||
const pageTitle = `${category}/${post.data.title ?? post.slug}`;
|
const pageTitle = `${category}/${post.data.title ?? post.slug}`;
|
||||||
|
|
||||||
console.log(Astro.props);
|
|
||||||
if (post.data?.redirect) {
|
if (post.data?.redirect) {
|
||||||
return Astro.redirect(post.data.redirect, 301);
|
return Astro.redirect(post.data.redirect, 301);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue