fix(ci): use .html

This commit is contained in:
Barrett Ruth 2025-05-22 17:19:31 -05:00
parent 63fc4373b2
commit b81f0fa3c4
3 changed files with 5 additions and 6 deletions

View file

@ -4,9 +4,8 @@ import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
export default defineConfig({
trailingSlash: "always",
build: {
format: "directory",
format: "file",
},
integrations: [
mdx({

View file

@ -31,7 +31,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
<div class="header-links">
<a target="_blank" href="/resume.pdf">resume</a>
<a target="_blank" href="/transcript.pdf">transcript</a>
<a href="/about/">about</a>
<a href="/about.html">about</a>
</div>
</header>
@ -85,7 +85,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
terminalPrompt.innerHTML += terminalText.charAt(i++);
setTimeout(typechar, delay / terminalText.length);
} else {
window.location.href = "/about/";
window.location.href = "/about.html";
}
}
typechar();
@ -118,7 +118,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
}
}
const aboutLink = document.querySelector('header a[href="/about/"]');
const aboutLink = document.querySelector('.header-links a[href="/about.html"]');
if (aboutLink) {
const path = window.location.pathname;
const isHome = path === "/" || path === "/index.html";

View file

@ -152,7 +152,7 @@ Object.keys(postsByCategory).forEach((category) => {
.pop()
.replace(/\.mdx?$/, "");
link.href = `/posts/${topic}/${slug}/`;
link.href = `/posts/${topic}/${slug}.html`;
link.textContent = post.data.title;
link.style.textDecoration = "underline";