first commit

This commit is contained in:
Troy 2024-12-23 21:18:55 +00:00
commit ff7c974867
Signed by: troy
GPG key ID: DFC06C02ED3B4711
227 changed files with 12908 additions and 0 deletions

20
src/components/Link.astro Normal file
View file

@ -0,0 +1,20 @@
---
import type { HTMLAttributes } from "astro/types";
interface Props extends HTMLAttributes<"a"> {
href: string;
external?: boolean;
class?: string;
}
const { href, external = true, ...rest } = Astro.props;
---
<a
href={href}
rel={external ? "noopener nofollow noreferrer" : ""}
target={external ? "_blank" : "_self"}
{...rest}
>
<slot />
</a>