diff options
| author | seth <[email protected]> | 2024-02-12 20:29:15 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-13 00:24:08 -0500 |
| commit | 2cbc22348ef038181e1dc89635a3be005604a4ca (patch) | |
| tree | 33a33ffe0203b730078d01c5d7d3951239619ca9 /src/components/Nav.astro | |
| parent | 05780c6b2d8b184122a32095c50363a6c8617d64 (diff) | |
back to astro
Diffstat (limited to 'src/components/Nav.astro')
| -rw-r--r-- | src/components/Nav.astro | 28 |
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> |
