Files
whenwe2/.eleventy.js
Nick Stokoe 65813f28f5 .eleventy.js - pass through with rename of assets and images
rc/index.html - update path following passthrough rename
2023-05-09 14:32:54 +01:00

19 lines
548 B
JavaScript

module.exports = function(eleventyConfig) {
const src = "./src";
eleventyConfig.addCollection('articles', collection => {
return collection.getFilteredByGlob(src+'/_articles/*.md');
});
eleventyConfig.addPassthroughCopy({ "src/_images" : "images" });
eleventyConfig.addPassthroughCopy({ "src/assets" : "assets" });
return {
dir: {
input: src, // Equivalent to Jekyll's source property
output: "./_site", // Equivalent to Jekyll's destination property
templateFormats: ['html', 'md'],
}
};
};