lucht/.eleventy.js

21 lines
477 B
JavaScript
Raw Normal View History

2021-08-31 02:16:17 +00:00
module.exports = function (config) {
2021-09-02 01:20:51 +00:00
2021-08-31 02:16:17 +00:00
// Layouts
config.addLayoutAlias("base", "base.njk");
config.addLayoutAlias("post", "post.njk");
2021-09-02 01:20:51 +00:00
config.addLayoutAlias("page", "page.njk");
2021-08-31 02:16:17 +00:00
// Base confirguration
return {
dir: {
input: "src",
output: "dist",
includes: "includes",
layouts: "layouts",
data: "data",
},
templateFormats: ["njk", "md", "11ty.js"],
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
};
};