this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› Generate static paths for work aliases

authored by

Gwenn Le Bihan and committed by
GitHub
c11f04df b6b21bce

+1 -1
+1 -1
src/pages/works/[work].astro
··· 11 11 12 12 export const getStaticPaths = (async () => { 13 13 return await getCollection("works").then((works) => 14 - works.map((work) => ({ params: { work: work.id } })), 14 + works.flatMap(work => [work.id, ...work.data.aliases]).map((id) => ({ params: { work: id } })), 15 15 ); 16 16 }) satisfies GetStaticPaths; 17 17