Initial commit

This commit is contained in:
tiff 2025-04-28 23:32:21 -04:00 committed by GitHub
commit b3a42bb0c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
91 changed files with 9419 additions and 0 deletions

View file

@ -0,0 +1,14 @@
---
import type { HTMLAttributes } from 'astro/types';
type Props = HTMLAttributes<'a'>;
const { href, class: className, ...props } = Astro.props;
const { pathname } = Astro.url;
const isActive = href === pathname || href === pathname.replace(/\/$/, '');
---
<a class:list={[className, { 'underline underline-offset-2 decoration-1': isActive }]} href={href} {...props}>
<slot />
</a>