This repository has been archived on 2023-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
personal-website-old/.eleventy.js
Laureηt 57e5db3c13 .
2021-01-08 15:46:52 +01:00

27 lines
674 B
JavaScript
Executable file

const pluginNavigation = require("@11ty/eleventy-navigation")
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginNavigation);
eleventyConfig.addPassthroughCopy('pages/css');
eleventyConfig.addPassthroughCopy('pages/content');
eleventyConfig.addPassthroughCopy({
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js",
"pages/favicon.ico": "favicon.ico"
});
eleventyConfig.addShortcode("year", () => {
let year = new Date().getFullYear();
return year.toString();
});
return {
dir: {
input: "pages"
},
pathPrefix: '/~fainsil/'
}
}