Skip to content

Commit 4831a82

Browse files
committed
fix: footersection no longer opens new window for same site
1 parent 3827706 commit 4831a82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Footer/FooterSection.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const { title, links } = Astro.props;
1515
<a
1616
href={link.to}
1717
class="hover:underline"
18-
target="_blank"
19-
rel="noreferrer"
18+
target={link.to.startsWith("/") ? "" : "_blank"}
19+
rel={link.to.startsWith("/") ? "" : "noreferrer"}
2020
>
2121
{link.title}
2222
</a>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const articles = (await getCollection("articles"))
3636
>
3737
<div style={{ gridArea: "2 / 1" }}>
3838
<Image
39-
alt="活動の様子"
39+
alt=""
4040
class="w-full h-full object-cover"
4141
width="1920"
4242
height="1080"

0 commit comments

Comments
 (0)