RedirectLayout.astro
· 461 B · Text
Raw
---
const { frontmatter } = Astro.props;
---
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content={`0;url=${frontmatter.redirect}`}>
<title>{frontmatter.title}</title>
<link rel="canonical" href={frontmatter.redirect} />
</head>
<body>
<h1>{frontmatter.title}</h1>
<p>자동으로 이동되지 않으면 <a href={frontmatter.redirect}>이 링크</a>를 클릭해주세요.</p>
</body>
</html>
| 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> |