From b81f0fa3c4166698ba798171d7aee80e139c4444 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 22 May 2025 17:19:31 -0500 Subject: [PATCH] fix(ci): use .html --- astro.config.mjs | 3 +-- src/components/Header.astro | 6 +++--- src/pages/index.astro | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 3d05bdc..3757b91 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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({ diff --git a/src/components/Header.astro b/src/components/Header.astro index 4f78e03..934e430 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -31,7 +31,7 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$"; @@ -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"; diff --git a/src/pages/index.astro b/src/pages/index.astro index 4565f68..ab5ebd7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -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";