feat: add config for entire collection

This commit is contained in:
Devin Haska 2024-02-09 15:08:16 -08:00
parent c7679dad26
commit 5f6740c573
2 changed files with 11 additions and 1 deletions

View file

@ -42,8 +42,16 @@ const getPostsByCategory = (collection) => {
return postsByCategory;
};
const getAllCatalogue = (collection) => {
const items = collection.getFilteredByGlob(
path.join(dir.input, "content/catalogue/**/*.md"),
);
return items.reverse();
};
module.exports = {
getAllPosts,
getAllCatalogue,
getAllPostCategories,
getAllPosts,
getPostsByCategory,
};