Skip to content

Commit fd8bb90

Browse files
authored
プロジェクトページからリンクするサイトへのnoreferrerを削除 (#343)
1 parent 1b209c8 commit fd8bb90

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/utils/ActionButton.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { to, variant = "dark" } = props;
1313

1414
<a
1515
href={to}
16-
{...!to.startsWith("/") ? { target: "_blank", rel: "noreferrer" } : {}}
16+
{...!to.startsWith("/") ? { target: "_blank", rel: "noopener" } : {}}
1717
class:list={[
1818
"not-prose relative flex w-max items-center gap-4 rounded-full bg-gray-50 px-6 py-3 font-bold text-black hover:brightness-95 active:top-0.25",
1919
variant === "dark" && "border border-black",

src/pages/projects/[...id].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ if (project.data.status !== "dead") {
120120
href={link.href}
121121
target="_blank"
122122
class="-m-1 mt-6 rounded-xl p-1 hover:brightness-95"
123-
rel="noreferrer"
123+
rel="noopener"
124124
aria-label={`${link.label}を見る`}
125125
>
126126
<Icon name={link.icon} class="h-9 w-9" />

0 commit comments

Comments
 (0)