2023-10-19 22:31:19 -04:00
|
|
|
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
|
2023-10-19 01:33:51 -04:00
|
|
|
const { DateTime } = require("luxon");
|
|
|
|
|
2023-10-18 13:32:43 -04:00
|
|
|
module.exports = function (eleventyConfig) {
|
2023-10-19 22:31:19 -04:00
|
|
|
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
|
|
|
|
2024-06-12 18:01:27 -04:00
|
|
|
eleventyConfig.addFilter("formatDate", (dateObj) => {
|
|
|
|
return DateTime.fromJSDate(dateObj).toFormat("y'-'LL'-'dd");
|
2023-10-19 01:33:51 -04:00
|
|
|
});
|
|
|
|
|
2024-06-24 02:33:28 -04:00
|
|
|
eleventyConfig.addPassthroughCopy({ "./src/res/css/**/*.css": "css" });
|
|
|
|
eleventyConfig.addPassthroughCopy({ "./src/res/font": "font" });
|
|
|
|
eleventyConfig.addPassthroughCopy({ "./src/res/img": "img" });
|
2024-06-25 11:18:16 -04:00
|
|
|
eleventyConfig.addPassthroughCopy({ "./src/res/*.txt": "."});
|
2024-06-24 02:33:28 -04:00
|
|
|
eleventyConfig.addWatchTarget("./src/res/css");
|
2023-10-18 13:32:43 -04:00
|
|
|
|
|
|
|
return {
|
|
|
|
dir: {
|
|
|
|
input: "src",
|
2024-06-24 02:33:28 -04:00
|
|
|
output: "_site",
|
2023-10-18 13:32:43 -04:00
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|