From 04facc8a35edd7492acc19e88e3b6094ab5e28f5 Mon Sep 17 00:00:00 2001 From: Ash Entwisle Date: Fri, 20 Oct 2023 16:53:21 +0000 Subject: [PATCH] moved redirects to config Signed-off-by: Ash Entwisle --- astro.config.mjs | 8 +++++++- src/pages/links/discord.astro | 3 --- src/pages/links/facebook.astro | 3 --- src/pages/links/github.astro | 3 --- src/pages/links/husu.astro | 3 --- src/pages/links/index.astro | 3 --- src/pages/links/instagram.astro | 3 --- src/pages/links/linkedin.astro | 3 --- src/pages/links/twitter.astro | 3 --- src/pages/links/x.astro | 3 --- 10 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 src/pages/links/discord.astro delete mode 100644 src/pages/links/facebook.astro delete mode 100644 src/pages/links/github.astro delete mode 100644 src/pages/links/husu.astro delete mode 100644 src/pages/links/index.astro delete mode 100644 src/pages/links/instagram.astro delete mode 100644 src/pages/links/linkedin.astro delete mode 100644 src/pages/links/twitter.astro delete mode 100644 src/pages/links/x.astro diff --git a/astro.config.mjs b/astro.config.mjs index 01925f7..ca3ea00 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -14,6 +14,12 @@ export default defineConfig({ output: "server", adapter: cloudflare(), redirects: { - "/links/testing": "https://hullcss.org/links", + "/links/discord": "https://discord.gg/sYeBPrjA", + "/links/facebook": "https://facebook.com/hullCSS", + "/links/github": "https://github.com/hullcss", + "/links/husu": "https://hulluniunion.com/activities/view/ComputerScience", + "/links/instagram": "https://instagram.com/hull_css/", + "/links/linkedin": "https://linkedin.com/company/hullcss", + "/links/twitter": "https://twitter.com/hull_CSS", } }); \ No newline at end of file diff --git a/src/pages/links/discord.astro b/src/pages/links/discord.astro deleted file mode 100644 index 18a96b2..0000000 --- a/src/pages/links/discord.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://discord.gg/sYeBPrjA"); ---- diff --git a/src/pages/links/facebook.astro b/src/pages/links/facebook.astro deleted file mode 100644 index 63734c0..0000000 --- a/src/pages/links/facebook.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://facebook.com/hullCSS"); ---- diff --git a/src/pages/links/github.astro b/src/pages/links/github.astro deleted file mode 100644 index c0977a6..0000000 --- a/src/pages/links/github.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://github.com/hullcss"); ---- diff --git a/src/pages/links/husu.astro b/src/pages/links/husu.astro deleted file mode 100644 index c503786..0000000 --- a/src/pages/links/husu.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://hulluniunion.com/activities/view/ComputerScience"); ---- diff --git a/src/pages/links/index.astro b/src/pages/links/index.astro deleted file mode 100644 index 707eb1d..0000000 --- a/src/pages/links/index.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://linktr.ee/hullcss"); ---- \ No newline at end of file diff --git a/src/pages/links/instagram.astro b/src/pages/links/instagram.astro deleted file mode 100644 index 2ec2191..0000000 --- a/src/pages/links/instagram.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://instagram.com/hull_css/"); ---- diff --git a/src/pages/links/linkedin.astro b/src/pages/links/linkedin.astro deleted file mode 100644 index c1963fb..0000000 --- a/src/pages/links/linkedin.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://linkedin.com/company/hullcss"); ---- diff --git a/src/pages/links/twitter.astro b/src/pages/links/twitter.astro deleted file mode 100644 index 697ec65..0000000 --- a/src/pages/links/twitter.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://twitter.com/hull_CSS"); ---- diff --git a/src/pages/links/x.astro b/src/pages/links/x.astro deleted file mode 100644 index 697ec65..0000000 --- a/src/pages/links/x.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://twitter.com/hull_CSS"); ----