-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathindex.astro
36 lines (31 loc) · 1022 Bytes
/
index.astro
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
29
30
31
32
33
34
35
36
---
import { getCollection } from "astro:content";
import Layout from "../../layouts/Layout.astro";
import HorizontalContainer from "../../components/HorizontalContainer.astro";
import Hero from "../../components/Hero.astro";
import QuickStart from "../../components/QuickStart.astro";
import Grid3 from "../../components/Grid3.astro";
import HoverableLink from "../../components/HoverableLink.astro";
import { conceptPagePath } from "../../lib/utils";
const title = "Concepts";
const heroTitle = "Nix concepts";
const description = "The whys and the hows of Nix";
const conceptPages = await getCollection("concepts");
---
<Layout {title} {description}>
<HorizontalContainer>
<Hero title={heroTitle} {description} />
<QuickStart />
<Grid3>
{
conceptPages.map(({ slug, data: { title } }) => (
<HoverableLink
text={title}
href={conceptPagePath(slug)}
size="normal"
/>
))
}
</Grid3>
</HorizontalContainer>
</Layout>