2022-02-07 03:14:31 +01:00
|
|
|
const { EleventyRenderPlugin } = require("@11ty/eleventy");
|
|
|
|
|
2022-02-05 14:48:21 +01:00
|
|
|
module.exports = function (eleventyConfig) {
|
|
|
|
eleventyConfig.addPassthroughCopy("./src/css");
|
|
|
|
eleventyConfig.addPassthroughCopy("./src/fonts");
|
|
|
|
eleventyConfig.addPassthroughCopy("./src/images");
|
|
|
|
eleventyConfig.addPassthroughCopy("./src/svgs");
|
|
|
|
eleventyConfig.addPassthroughCopy("./src/js");
|
2022-02-05 23:41:45 +01:00
|
|
|
eleventyConfig.addPassthroughCopy("./src/screenshots");
|
2022-02-06 00:16:53 +01:00
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"./projects/freeCodeCamp": "freeCodeCamp",
|
|
|
|
});
|
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"./projects/FrontendMentor": "FrontendMentor",
|
|
|
|
});
|
2022-09-04 13:57:08 +02:00
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"./projects/random": "others",
|
|
|
|
});
|
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"./projects/devchallenges": "devchallenges",
|
|
|
|
});
|
2022-02-06 01:50:47 +01:00
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"./src/assets/faviconstuff": "/",
|
|
|
|
});
|
|
|
|
|
2022-02-05 14:48:21 +01:00
|
|
|
//eleventyConfig.addPassthroughCopy({
|
|
|
|
// "./src/assets/images": "img",
|
|
|
|
//});
|
|
|
|
|
2022-02-07 03:14:31 +01:00
|
|
|
// PLUGINS
|
|
|
|
eleventyConfig.addPlugin(EleventyRenderPlugin);
|
|
|
|
|
2022-02-06 00:16:53 +01:00
|
|
|
// WATCH Targets
|
|
|
|
eleventyConfig.addWatchTarget("./src/css/");
|
|
|
|
eleventyConfig.addWatchTarget("./src/js/");
|
|
|
|
|
2022-02-05 14:48:21 +01:00
|
|
|
// Return your Object options:
|
|
|
|
return {
|
2022-02-07 03:14:31 +01:00
|
|
|
// markdownTemplateEngine: "njk",
|
2022-02-05 14:48:21 +01:00
|
|
|
dir: {
|
|
|
|
input: "src",
|
|
|
|
output: "www",
|
2022-02-07 03:14:31 +01:00
|
|
|
// ⚠️ These values are relative to the input directory.
|
2022-02-05 14:48:21 +01:00
|
|
|
// 📝 _includes is a default value, as is _data but I like them
|
2022-02-07 03:14:31 +01:00
|
|
|
// visible here as a reminder 🤷
|
|
|
|
includes: "_includes",
|
|
|
|
// done to shorten the frontmater so layout: base
|
|
|
|
// rather than layout: layouts/base
|
|
|
|
layouts: "_includes/layouts",
|
|
|
|
data: "_data",
|
2022-02-05 14:48:21 +01:00
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|