diff --git a/.eleventy.js b/.eleventy.js index 88fe83ae3..8ac5cb624 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -43,6 +43,14 @@ module.exports = function (eleventyConfig) { const { parse, stringify } = require("flatted/cjs"); eleventyConfig.addFilter("safeDump", stringify); + // ------------------------------------------------------------------------ + // Collections + // ------------------------------------------------------------------------ + + eleventyConfig.addCollection("links", function (collection) { + return collection.getFilteredByGlob("src/links/**/*.md"); + }); + // ------------------------------------------------------------------------ // Shortcodes // ------------------------------------------------------------------------