www-lauka-net-11ty/.eleventy.js
2023-06-04 20:27:58 +02:00

21 lines
652 B
JavaScript

const now = DateTime.now();
const { DateTime } = require("luxon");
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "static/.well-known": ".well-known" })
eleventyConfig.addPassthroughCopy({ "static/certificates": "certificates" })
eleventyConfig.addPassthroughCopy({ "static/css": "css" })
eleventyConfig.addFilter("timestamp", function(value) {
return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL)
});
eleventyConfig.addFilter("copyrightyear", function() {
return DateTime.local().toFormat('y')
});
return {
passthroughFileCopy: true
}
}