summaryrefslogtreecommitdiff
path: root/src/components/Link.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Link.astro')
-rw-r--r--src/components/Link.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Link.astro b/src/components/Link.astro
index 72a0e0a..e8396ec 100644
--- a/src/components/Link.astro
+++ b/src/components/Link.astro
@@ -1,12 +1,12 @@
---
interface Props {
- href: string;
- newTab?: boolean;
+ href: string;
+ newTab?: boolean;
}
const { href, newTab = true } = Astro.props;
---
<a href={href} {...newTab && { target: "_blank", rel: "noopener noreferrer" }}>
- <slot />
+ <slot />
</a>