Skip to content

Commit

Permalink
Make blog links root relative
Browse files Browse the repository at this point in the history
  • Loading branch information
fwextensions committed Apr 17, 2024
1 parent 488dc83 commit ffdffe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlogListItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
---
Expand Down

0 comments on commit ffdffe5

Please sign in to comment.