module.exports = function (eleventyConfig) { eleventyConfig.setNunjucksEnvironmentOptions({ // throwOnUndefined: true, trimBlocks: true }); eleventyConfig.addGlobalData("permalink", () => { return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`; }); eleventyConfig.addGlobalData("hippie", { brand: 'hippie', titlePrefix: ' - HIPPIE', pageBase: './' }); eleventyConfig.addPassthroughCopy({"source/art/images": "art"}); eleventyConfig.addPassthroughCopy({"source/art/favicons/**/*.+(ico|png|svg)": "."}); eleventyConfig.addPassthroughCopy({"source/code/**/*.js": "js"}); eleventyConfig.addPassthroughCopy({"source/data/**/*.json": "json"}); eleventyConfig.addPassthroughCopy("vendor"); eleventyConfig.addWatchTarget("./source/style/"); return { dir: { input: "source/screens", output: "build", includes: "../templates", data: "../data" }, markdownTemplateEngine: "njk", htmlTemplateEngine: "njk", templateFormats: ["html", "njk"] } };