From 06fb313aeb4f4b6218b6165edde45ea7f2b327d3 Mon Sep 17 00:00:00 2001 From: John Dunning Date: Sat, 13 Jan 2024 17:11:01 -0800 Subject: [PATCH] Change the base to /sfcivictech-site-explorations/ On a personal repo, the repo name is the first part of the path. And use ./ for the home link in the nav header, so it respects the base. --- packages/astro/astro.config.mjs | 4 ++-- packages/astro/src/components/HeaderNav.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/astro.config.mjs b/packages/astro/astro.config.mjs index 071f946..0e5c0e4 100644 --- a/packages/astro/astro.config.mjs +++ b/packages/astro/astro.config.mjs @@ -3,7 +3,7 @@ import { defineConfig } from "astro/config"; // https://astro.build/config export default defineConfig({ // site: "https://sfbrigade.github.io", - base: "/", -// base: "/sfcivictech-site-explorations/packages/astro/", +// base: "/", + base: "/sfcivictech-site-explorations/", // site: "https://www.sfcivictech.org/" }); diff --git a/packages/astro/src/components/HeaderNav.astro b/packages/astro/src/components/HeaderNav.astro index d5b5ad4..96daa5f 100644 --- a/packages/astro/src/components/HeaderNav.astro +++ b/packages/astro/src/components/HeaderNav.astro @@ -18,7 +18,7 @@ const currentPath = fullPath.slice(fullPath.lastIndexOf("/") + 1);