summaryrefslogtreecommitdiff
path: root/src/components/Nav.astro
blob: c08662d502664fee8ef5d85eab74af97bb8cc1fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>