Add feed item collection
This commit is contained in:
parent
651bea23a9
commit
cc49a8941b
|
@ -89,6 +89,13 @@ module.exports = function (eleventyConfig) {
|
||||||
/* This is the part that tells 11ty to swap to our custom config */
|
/* This is the part that tells 11ty to swap to our custom config */
|
||||||
eleventyConfig.setLibrary("md", markdownLibrary);
|
eleventyConfig.setLibrary("md", markdownLibrary);
|
||||||
|
|
||||||
|
// Add contents to a feed items collection
|
||||||
|
eleventyConfig.addCollection("feedItems", function (collectionApi) {
|
||||||
|
return collectionApi.getFilteredByTags(
|
||||||
|
'articles', 'posts', 'changelogs'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
// Add content categories to a collection
|
// Add content categories to a collection
|
||||||
eleventyConfig.addCollection("categories", function(collectionApi) {
|
eleventyConfig.addCollection("categories", function(collectionApi) {
|
||||||
let categories = new Set();
|
let categories = new Set();
|
||||||
|
|
Loading…
Reference in New Issue