diff --git a/src/components/Header.astro b/src/components/Header.astro
index 3f4dfbc..5120467 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -97,8 +97,8 @@ const isActive = (path: string) => {
"active-nav [&>svg]:stroke-accent": isActive("/archives"),
},
]}
- ariaLabel="archives"
title="Archives"
+ aria-label="archives"
>
Archives
@@ -113,8 +113,8 @@ const isActive = (path: string) => {
"focus-outline flex p-3 sm:p-1",
{ "[&>svg]:stroke-accent": isActive("/search") },
]}
- ariaLabel="search"
title="Search"
+ aria-label="search"
>
Search
diff --git a/src/components/LinkButton.astro b/src/components/LinkButton.astro
index 6c671f5..cfcc113 100644
--- a/src/components/LinkButton.astro
+++ b/src/components/LinkButton.astro
@@ -1,45 +1,21 @@
---
-export interface Props {
- id?: string;
- href: string;
- class?: string;
- ariaLabel?: string;
- title?: string;
- disabled?: boolean;
-}
+import type { HTMLAttributes } from "astro/types";
-const {
- id,
- href,
- class: className = "",
- ariaLabel,
- title,
- disabled = false,
-} = Astro.props;
+type Props = { disabled?: boolean } & HTMLAttributes<"a">;
+
+const { disabled, class: className, ...attrs } = Astro.props;
+
+const Button = disabled ? "span" : "a";
---
-{
- disabled ? (
-
-
-
- ) : (
-
-
-
- )
-}
+
diff --git a/src/components/Pagination.astro b/src/components/Pagination.astro
index 1887bb0..5fb3a83 100644
--- a/src/components/Pagination.astro
+++ b/src/components/Pagination.astro
@@ -14,12 +14,16 @@ const { page } = Astro.props;
{
page.lastPage > 1 && (
-