akadmin revised this gist 3 months ago. Go to revision
2 files changed, 21 insertions
RedirectLayout.astro(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | --- | |
| 2 | + | const { frontmatter } = Astro.props; | |
| 3 | + | --- | |
| 4 | + | <!DOCTYPE html> | |
| 5 | + | <html lang="ko"> | |
| 6 | + | <head> | |
| 7 | + | <meta charset="UTF-8"> | |
| 8 | + | <meta http-equiv="refresh" content={`0;url=${frontmatter.redirect}`}> | |
| 9 | + | <title>{frontmatter.title}</title> | |
| 10 | + | <link rel="canonical" href={frontmatter.redirect} /> | |
| 11 | + | </head> | |
| 12 | + | <body> | |
| 13 | + | <h1>{frontmatter.title}</h1> | |
| 14 | + | <p>자동으로 이동되지 않으면 <a href={frontmatter.redirect}>이 링크</a>를 클릭해주세요.</p> | |
| 15 | + | </body> | |
| 16 | + | </html> | |
index.mdx(file created)
| @@ -0,0 +1,5 @@ | |||
| 1 | + | --- | |
| 2 | + | title: Redirecting... | |
| 3 | + | layout: /src/layouts/RedirectLayout.astro | |
| 4 | + | redirect: "/eg-bim_guide/ko/guides/introduction" | |
| 5 | + | --- | |
Newer
Older