edited redirects, there is probably a better way but the astro.config.redirects werent working :/, I may need to open an issue

Signed-off-by: Ash Entwisle <ash.entwisle@protonmail.com>
issue/index
Ash Entwisle 2023-09-19 02:20:29 +00:00
parent 45173bd680
commit 16b95a8d75
No known key found for this signature in database
GPG Key ID: 0E3CBB6B4BE9FE33
12 changed files with 68 additions and 4 deletions

View File

@ -11,5 +11,7 @@ import cloudflare from "@astrojs/cloudflare";
export default defineConfig({
integrations: [tailwind(), mdx(), partytown(), sitemap(), prefetch()],
output: "server",
adapter: cloudflare()
adapter: cloudflare(),
redirects: {
}
});

View File

@ -10,13 +10,19 @@
</div>
<div class="header-r">
<div class="header-button">
button 1
<a href="/about">about</a>
</div>
<div class="header-button">
button 2
<a href="/blog">blog</a>
</div>
<div class="header-button">
button 3
<a href="/#contact">contact</a>
</div>
<div class="header-button">
<a href="/links/discord">discord</a>
</div>
<div class="header-button">
<a href="/links/github">github</a>
</div>
</div>
</header>

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://discord.gg/sYeBPrjA");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://facebook.com/hullCSS");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://github.com/hullcss");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://hullstudent.com/groups/hull-css");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://linktr.ee/hullcss");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://instagram.com/hull_css/");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://linkedin.com/company/hullcss");
---

View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://twitter.com/hull_CSS");
---

3
src/pages/links/x.astro Normal file
View File

@ -0,0 +1,3 @@
---
return Astro.redirect("https://twitter.com/hull_CSS");
---

View File

@ -0,0 +1,29 @@
---
# Edit all of this
# title: "Example Title"
# author: "Ash Entwisle"
# title: "Webmaster"
# date: "2023-01-31"
# description: "Example description"
# tags: ["Tag 1", "Tag 2", "..."]
# draft: true # set to false to publish
# Don't edit this
# layout: ../layouts/Blogpost.astro
---
# This is an example Blogpost
This is an example blogpost. You can edit this file to create your own blogpost.
This uses markdown, so you can use all the usual markdown features.
## draft
If you set `draft: true` then the blogpost will not be published. If you set `draft: false` then the blogpost will be published.
if someone tries to access a draft blogpost, they will get an unauthorised error, once draft is set to false, they will be able to access it.
## Layout
DO NOT EDIT THE LAYOUT !!!!!!