fix(ci): use .html
This commit is contained in:
parent
63fc4373b2
commit
b81f0fa3c4
3 changed files with 5 additions and 6 deletions
|
|
@ -4,9 +4,8 @@ import remarkMath from "remark-math";
|
||||||
import rehypeKatex from "rehype-katex";
|
import rehypeKatex from "rehype-katex";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
trailingSlash: "always",
|
|
||||||
build: {
|
build: {
|
||||||
format: "directory",
|
format: "file",
|
||||||
},
|
},
|
||||||
integrations: [
|
integrations: [
|
||||||
mdx({
|
mdx({
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
|
||||||
<div class="header-links">
|
<div class="header-links">
|
||||||
<a target="_blank" href="/resume.pdf">resume</a>
|
<a target="_blank" href="/resume.pdf">resume</a>
|
||||||
<a target="_blank" href="/transcript.pdf">transcript</a>
|
<a target="_blank" href="/transcript.pdf">transcript</a>
|
||||||
<a href="/about/">about</a>
|
<a href="/about.html">about</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
|
||||||
terminalPrompt.innerHTML += terminalText.charAt(i++);
|
terminalPrompt.innerHTML += terminalText.charAt(i++);
|
||||||
setTimeout(typechar, delay / terminalText.length);
|
setTimeout(typechar, delay / terminalText.length);
|
||||||
} else {
|
} else {
|
||||||
window.location.href = "/about/";
|
window.location.href = "/about.html";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
typechar();
|
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) {
|
if (aboutLink) {
|
||||||
const path = window.location.pathname;
|
const path = window.location.pathname;
|
||||||
const isHome = path === "/" || path === "/index.html";
|
const isHome = path === "/" || path === "/index.html";
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ Object.keys(postsByCategory).forEach((category) => {
|
||||||
.pop()
|
.pop()
|
||||||
.replace(/\.mdx?$/, "");
|
.replace(/\.mdx?$/, "");
|
||||||
|
|
||||||
link.href = `/posts/${topic}/${slug}/`;
|
link.href = `/posts/${topic}/${slug}.html`;
|
||||||
link.textContent = post.data.title;
|
link.textContent = post.data.title;
|
||||||
link.style.textDecoration = "underline";
|
link.style.textDecoration = "underline";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue