Files
whenwe2/.eleventy.js
Nick Stokoe fc1d35edd7 wip -
2023-01-05 14:47:16 +00:00

18 lines
467 B
JavaScript

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