wip -
This commit is contained in:
17
.eleventy.js
Normal file
17
.eleventy.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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'],
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user