diff --git a/config/collections/index.js b/config/collections/index.js index c975dee..1c9fa73 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -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 */