From 6089aad0afe6f5d2ab92b2b4e8cc73461f53e437 Mon Sep 17 00:00:00 2001 From: damii Date: Tue, 3 Dec 2024 22:13:27 +1100 Subject: [PATCH] Add patches for site redirection --- astro.config.mjs | 2 -- src/components/Navbar.astro | 22 ++++++++++++++-------- src/utils/links.ts | 1 - 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 4ce1368..16fcb37 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,7 +6,5 @@ import tailwind from "@astrojs/tailwind"; // https://astro.build/config export default defineConfig({ - site: "https://the-unnamed-nug.github.io", - base: "/sherpa", integrations: [tailwind()], }); diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 64c7e82..c730a80 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -6,6 +6,7 @@ import Spacer from "./Spacer.astro"; import { getLangFromUrl, useTranslations } from "../i18n/utils"; const lang = getLangFromUrl(Astro.url); +const origin = Astro.url.origin; import { siteLink } from "@utils/links"; --- @@ -13,22 +14,27 @@ import { siteLink } from "@utils/links"; class="flex flex-row flex-wrap my-1 mx-20 p-3 justify-between items-center" >
- Sherpa + Sherpa
- Home - PrefaceHome - Why NixOS?Preface - Get StartedWhy NixOS? + Get Started
diff --git a/src/utils/links.ts b/src/utils/links.ts index 502f935..79de0fc 100644 --- a/src/utils/links.ts +++ b/src/utils/links.ts @@ -1,3 +1,2 @@ const siteLink = (path: string) => `${import.meta.env.BASE_URL}${path}`; - export { siteLink };