From 4fca7b9d1837b5607ba8c353e3d097bc9d18375b Mon Sep 17 00:00:00 2001 From: madrilene Date: Fri, 25 Oct 2024 13:07:57 +0200 Subject: [PATCH] fix: include njk files in onlyMarkdown collection, thanks @juchom --- src/_config/collections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_config/collections.js b/src/_config/collections.js index 8e4be3a..356d6ed 100644 --- a/src/_config/collections.js +++ b/src/_config/collections.js @@ -5,7 +5,7 @@ export const getAllPosts = collection => { /** All markdown files as a collection for sitemap.xml */ export const onlyMarkdown = collection => { - return collection.getFilteredByGlob('./src/**/*.md'); + return collection.getFilteredByGlob('./src/**/*.{md,njk}'); }; /** All tags from all posts as a collection - excluding custom collections */