fix: include njk files in onlyMarkdown collection, thanks @juchom

This commit is contained in:
madrilene 2024-10-25 13:07:57 +02:00
parent 3f56328f4d
commit 4fca7b9d18

View file

@ -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 */