summaryrefslogtreecommitdiff
path: root/src/components/Nav.astro
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-12 20:29:15 -0500
committerseth <[email protected]>2024-02-13 00:24:08 -0500
commit2cbc22348ef038181e1dc89635a3be005604a4ca (patch)
tree33a33ffe0203b730078d01c5d7d3951239619ca9 /src/components/Nav.astro
parent05780c6b2d8b184122a32095c50363a6c8617d64 (diff)
back to astro
Diffstat (limited to 'src/components/Nav.astro')
-rw-r--r--src/components/Nav.astro28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/components/Nav.astro b/src/components/Nav.astro
new file mode 100644
index 0000000..c08662d
--- /dev/null
+++ b/src/components/Nav.astro
@@ -0,0 +1,28 @@
+---
+import config from "@root/astro.config.ts";
+
+interface NavLink {
+ name: string;
+ url: string;
+}
+
+const links: NavLink[] = [
+ { name: "home", url: "/" },
+ {
+ name: "miniflux",
+ url: `https://miniflux.${Astro.url.hostname || config.site}`,
+ },
+ {
+ name: "github",
+ url: "https://github.com/getchoo",
+ },
+];
+---
+
+<nav class="space-y-5 text-xl my-5">
+ <p>
+ {links.map(({ name, url }) => <a href={url}>{name}</a>)}
+ </p>
+
+ <hr />
+</nav>