hippie/.eleventy.js

62 lines
1.7 KiB
JavaScript
Raw Normal View History

module.exports = function (eleventyConfig) {
// eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
2025-10-26 15:19:14 +01:00
eleventyConfig.setLiquidOptions({
// greedy: false,
// trimOutputLeft: true,
// trimOutputRight: true,
// trimTagLeft: true,
// trimTagRight : true,
});
eleventyConfig.setNunjucksEnvironmentOptions({
// throwOnUndefined: true,
trimBlocks: true
});
eleventyConfig.addGlobalData("permalink", () => {
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
});
let demoMode = false;
let pageBase = demoMode ? './demo/' : './';
2023-10-25 21:30:02 +02:00
eleventyConfig.addGlobalData("hippie", {
pageBase: pageBase,
2023-10-25 21:30:02 +02:00
brand: 'hippie',
2024-08-08 20:35:08 +02:00
titlePrefix: '',
titlePostfix: ' - HIPPIE',
debugMode: true,
legacyMode: false
2023-10-25 21:30:02 +02:00
});
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.addPassthroughCopy({"node_modules/bootstrap-icons": "vendor/bootstrap-icons"});
eleventyConfig.addPassthroughCopy({
2025-11-01 12:01:58 +01:00
"node_modules/jquery/dist/jquery.min.js": "vendor/jquery.min.js",
"node_modules/jquery/dist/jquery.min.map": "vendor/jquery.min.map"
});
// eleventyConfig.addPassthroughCopy({"node_modules/normalize.css/normalize.css": "vendor/normalize.css"});
eleventyConfig.addWatchTarget("./source/style/");
return {
dir: {
input: "source/screens",
output: "build",
includes: "../templates",
data: "../data"
},
2025-10-26 15:19:14 +01:00
templateFormats: ["html", "liquid", "njk", "md"]
// pathPrefix: './demo/'
2025-10-26 15:19:14 +01:00
};
};