2024-02-07 18:40:34 +01:00
|
|
|
module.exports = function(eleventyConfig) {
|
|
|
|
// Copying static assets
|
|
|
|
eleventyConfig.addPassthroughCopy("src/style.css");
|
|
|
|
eleventyConfig.addPassthroughCopy("src/photo.png");
|
2024-02-08 23:07:59 +01:00
|
|
|
eleventyConfig.addPassthroughCopy("src/advent_pro_500.woff2");
|
|
|
|
eleventyConfig.addPassthroughCopy("src/advent_pro_600.woff2");
|
|
|
|
eleventyConfig.addPassthroughCopy("src/updock_400.woff2");
|
2024-02-07 18:40:34 +01:00
|
|
|
|
|
|
|
// Configuring permalinks to be ~.html instead of ~/
|
|
|
|
eleventyConfig.addGlobalData("permalink", () => {
|
|
|
|
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
|
|
|
|
});
|
|
|
|
|
|
|
|
// Options
|
|
|
|
return {
|
|
|
|
dir: {
|
|
|
|
input: "src",
|
|
|
|
output: "dist"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|