correct naming, get subfolders as well

This commit is contained in:
madrilene 2024-02-13 11:33:05 +01:00
parent 9322a1bdac
commit fb96bc06c0

View file

@ -1,7 +1,7 @@
/** All blog posts as a collection. */
const getAllPosts = collection => {
const projects = collection.getFilteredByGlob('./src/posts/*.md');
return projects.reverse();
const posts = collection.getFilteredByGlob('./src/posts/**/*.md');
return posts.reverse();
};
/** All markdown files as a collection for sitemap.xml */