diff --git a/astro.config.mjs b/astro.config.mjs index 0ed3fbf..1f63d5e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,15 +3,14 @@ import icon from "astro-icon"; export default defineConfig({ // site: "https://www.sfcivictech.org/" - // base: "/", + // base: "", site: "https://sfbrigade.github.io", base: "/astro-static-site/", + trailingSlash: "ignore", compressHTML: false, integrations: [ icon({ include: { - // Include all `mdi` icons in the bundle - // mdi: ["*"], // Include only specific `fa` icons in the bundle fa: ["twitter", "facebook", "linkedin", "github", "slack", "meetup"], }, diff --git a/src/components/BlogListItem.astro b/src/components/BlogListItem.astro index 60b1d39..06d6399 100644 --- a/src/components/BlogListItem.astro +++ b/src/components/BlogListItem.astro @@ -21,7 +21,7 @@ const { } = Astro.props; const imageData = await getBlogImage(image); const backgroundImageURL = imageData?.src ?? ""; -const postURL = "blog/" + slug; +const postURL = "/blog/" + slug; const dateString = date?.toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" }); ---