website/src/pages/songs/index.astro

12 lines
298 B
Plaintext
Raw Normal View History

2023-04-26 10:33:30 +02:00
---
import List from "../../layouts/List.astro";
2023-04-29 21:00:17 +02:00
import { CIRCLES } from "../../utils/songs/data";
2023-04-26 10:33:30 +02:00
2023-04-29 21:00:17 +02:00
const pages = Object.keys(CIRCLES)
.map(slug => ({ title: CIRCLES[slug].name, slug: `/songs/${slug}/` }))
.sort((a, b) => a.title < b.title ? -1 : 1)
2023-04-26 10:33:30 +02:00
---
2023-04-29 21:00:17 +02:00
<List title="Circles" pages={pages}/>