Skip to content

Commit

Permalink
fix: blog migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yongsk0066 committed Jul 19, 2024
1 parent 644f00b commit 5278c8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
---

<link rel="canonical" href="https://yongseok.me/" />
<meta http-equiv="refresh" content="0; URL=https://yongseok.me/" />
<script>
window.location.href =
"https://yongseok.me" +
window.location.pathname +
window.location.search +
window.location.hash;
</script>

<!-- Global Metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
Expand Down
10 changes: 10 additions & 0 deletions src/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { title, description, image = "/nano.png" } = Astro.props;
---

<link rel="canonical" href="https://yongseok.me/" />
<meta http-equiv="refresh" content="0; URL=https://yongseok.me/" />
<script>
window.location.href =
"https://yongseok.me" +
window.location.pathname +
window.location.search +
window.location.hash;
</script>

<!-- Global Metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
Expand Down

0 comments on commit 5278c8c

Please sign in to comment.