Skip to content

Commit 75b6edd

Browse files
authored
add redirect (#42)
1 parent a4c315e commit 75b6edd

File tree

7 files changed

+77
-0
lines changed

7 files changed

+77
-0
lines changed

src/pages/2017.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2018.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2019.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2020.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2021.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2022.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg${Astro.url.pathname}`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

src/pages/2023.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import Layout from "../layout.astro";
3+
const redirectUrl = `https://old.buildingblocs.sg/2023-newnew`;
4+
---
5+
<Layout title="Redirecting..." showTitle>
6+
<p class="mx-10 text-center mb-20">Redirecting to <a href={redirectUrl}>{redirectUrl}</a>.</p>
7+
<head>
8+
<meta http-equiv="refresh" content=`0; url=${redirectUrl}` />
9+
<title>Redirecting...</title>
10+
</head>
11+
</Layout>

0 commit comments

Comments
 (0)