mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-11 18:56:06 +09:00
Update Button.tsx
This commit is contained in:
@@ -14,7 +14,7 @@ const Button = ({
|
|||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={link}
|
href={link}
|
||||||
target="_blank"
|
target={link.startsWith("http") ? "_blank" : "_self"}
|
||||||
rel={`noopener noreferrer ${
|
rel={`noopener noreferrer ${
|
||||||
rel ? (rel === "follow" ? "" : rel) : "nofollow"
|
rel ? (rel === "follow" ? "" : rel) : "nofollow"
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user