From fb96bc06c02929cfba3cb08e392d7a221588f072 Mon Sep 17 00:00:00 2001 From: madrilene Date: Tue, 13 Feb 2024 11:33:05 +0100 Subject: [PATCH] correct naming, get subfolders as well --- config/collections/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */