diff --git a/.eleventy.js b/.eleventy.js index 6d13f5c..55c32d2 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -15,7 +15,7 @@ module.exports = function(eleventyConfig) { // only content in the `posts/` directory eleventyConfig.addCollection("posts", function(collection) { return collection.getAllSorted().filter(function(item) { - return item.inputPath.match(/^\.\/posts\//) !== null; + return item.inputPath.startsWith('./posts'); }); });