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

24 lines
604 B
JavaScript
Raw Normal View History

2020-11-19 14:49:52 +00:00
module.exports = function(eleventyConfig) {
2020-11-19 15:40:01 +00:00
eleventyConfig.addPassthroughCopy('pages/css')
2020-11-19 17:46:03 +00:00
eleventyConfig.addPassthroughCopy('pages/content')
2020-11-19 14:49:52 +00:00
eleventyConfig.addPassthroughCopy({
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js",
"pages/cv.pdf": "cv.pdf",
"pages/favicon.ico": "favicon.ico"
});
2020-11-19 15:24:32 +00:00
eleventyConfig.addShortcode("year", () => {
let year = new Date().getFullYear();
return year.toString();
});
2020-11-19 14:49:52 +00:00
return {
dir: {
2020-11-19 19:11:50 +00:00
input: "pages"
},
pathPrefix: '/~fainsil/'
}
2020-11-19 14:49:52 +00:00
}