Convert config to ESM
build / build (push) Failing after 20s

This commit is contained in:
Claude
2026-08-02 01:40:59 +02:00
parent 90af2ff911
commit c5ecdde630
3 changed files with 11 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
import pug from "pug";
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("src/assets/img");
eleventyConfig.addExtension("pug", {
compile: (inputContent, inputPath) => {
const fn = pug.compile(inputContent, { filename: inputPath });
return (data) => fn(data);
},
});
return {
dir: {
input: "src",
output: "dist",
includes: "_includes",
data: "_data",
},
templateFormats: ["pug", "md", "html"],
htmlTemplateEngine: "pug",
markdownTemplateEngine: "pug",
};
}