20 lines
449 B
Text
20 lines
449 B
Text
|
|
---
|
||
|
|
import PhotoAlbumContent from '../../../components/photo/pages/PhotoAlbumContent.astro';
|
||
|
|
|
||
|
|
export async function getStaticPaths() {
|
||
|
|
const categories = [
|
||
|
|
'portraits', 'places', 'nature',
|
||
|
|
'cultures', 'music', 'sports', 'engines', 'everyday'
|
||
|
|
];
|
||
|
|
|
||
|
|
return categories.map(category => ({
|
||
|
|
params: { category },
|
||
|
|
props: { category }
|
||
|
|
}));
|
||
|
|
}
|
||
|
|
|
||
|
|
const { category } = Astro.params;
|
||
|
|
---
|
||
|
|
|
||
|
|
<PhotoAlbumContent category={category} lang="fr" />
|