13 lines
417 B
Text
13 lines
417 B
Text
---
|
|
import { getCollection } from 'astro:content';
|
|
import TaShowcaseLayout from '../../layouts/taShowcaseLayout.astro'
|
|
|
|
export async function getStaticPaths() {
|
|
const fulldata = (await getCollection('teslafest')).map((data) => data.id)
|
|
return fulldata.map((slug) => ({ params: { slug } }))
|
|
}
|
|
|
|
const { slug } = Astro.params
|
|
---
|
|
|
|
<TaShowcaseLayout collection="teslafest" collectionKey={slug} baseurl="teslafest" />
|