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
parent
45173bd680
commit
16b95a8d75
|
@ -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: {
|
||||
}
|
||||
});
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://discord.gg/sYeBPrjA");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://facebook.com/hullCSS");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://github.com/hullcss");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://hullstudent.com/groups/hull-css");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://linktr.ee/hullcss");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://instagram.com/hull_css/");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://linkedin.com/company/hullcss");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://twitter.com/hull_CSS");
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
return Astro.redirect("https://twitter.com/hull_CSS");
|
||||
---
|
|
@ -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 !!!!!!
|
Loading…
Reference in New Issue