Removed unused build, refactored H1-3 to use slot based setup, added visual and aria page highlighting for navbar links, switched all pages to use custom H1-3, better new page/tab handling for inline links
All checks were successful
Build and Test - Staging / test (pull_request) Successful in 4m29s
Build and Test - Staging / build_and_push (pull_request) Successful in 4m59s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s

This commit is contained in:
2025-12-05 14:17:12 -08:00
parent f9a837f0fa
commit 4b5f65bfdd
18 changed files with 248 additions and 224 deletions

View File

@@ -1,14 +1,30 @@
---
interface Props {
import type { ComponentPropsBase } from "@interfaces/components.ts";
interface Props extends ComponentPropsBase {
href: string;
target?: string;
}
const { href, target = "_blank" } = Astro.props;
const { class: className, href, target } = Astro.props;
let finalTarget: string | undefined = target;
if (target === undefined) {
if (href.startsWith("/")) {
finalTarget = "";
} else {
finalTarget = "_blank";
}
}
---
<>
<a class="text-blue-500 hover:text-blue-300" href={href} target={target}>
<a
class:list={["text-blue-500", "hover:text-blue-300", className]}
href={href}
target={finalTarget}
>
<slot />
</a>
</>