Skip to content

Commit

Permalink
Merge pull request #27 from snowcamp/redirect-scheduling
Browse files Browse the repository at this point in the history
redirect scheduling
  • Loading branch information
barmic authored Nov 12, 2024
2 parents 67a87c7 + 1dac2c3 commit ec2468b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
19 changes: 19 additions & 0 deletions src/layouts/Redirect.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
export interface Props {
target: string;
}
const { target } = Astro.props;
const lang = (Astro.locals as any).lang;
const content = `0; url=${target}`;
---
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content={content}/>
<title>Redirect to {target}</title>
</head>
</head>
<body lang="fr">
<h1>Redirect to {target}</h1>
</body>
5 changes: 5 additions & 0 deletions src/pages/scheduling.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
import Redirect from '../layouts/Redirect.astro';
---
<Redirect target="https://snowcamp2024.sched.com/"></Redirect>
5 changes: 0 additions & 5 deletions src/pages/scheduling.ts

This file was deleted.

0 comments on commit ec2468b

Please sign in to comment.