We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d670706 commit 60ef182Copy full SHA for 60ef182
src/pages/recursos/[category]/[...page].astro
@@ -19,7 +19,7 @@ export async function getStaticPaths({ paginate }) {
19
}
20
21
const allResources = await getCollection("resources");
22
- return allCategories.map((categoryObj) => {
+ return allCategories.flatMap((categoryObj) => {
23
let filteredResources = allResources.filter((resource) => resource.data.category == categoryObj.key);
24
const category = categoryObj.slug;
25
return paginate(filteredResources, {
0 commit comments