www-lauka-net-11ty/.eleventy.js

22 lines
652 B
JavaScript
Raw Normal View History

2023-06-04 20:27:58 +02:00
const now = DateTime.now();
2023-05-25 10:49:09 +02:00
const { DateTime } = require("luxon");
module.exports = function(eleventyConfig) {
2023-05-21 13:32:30 +02:00
eleventyConfig.addPassthroughCopy({ "static/.well-known": ".well-known" })
eleventyConfig.addPassthroughCopy({ "static/certificates": "certificates" })
eleventyConfig.addPassthroughCopy({ "static/css": "css" })
2023-05-25 10:46:40 +02:00
eleventyConfig.addFilter("timestamp", function(value) {
return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL)
});
2023-06-04 20:27:58 +02:00
eleventyConfig.addFilter("copyrightyear", function() {
return DateTime.local().toFormat('y')
});
return {
passthroughFileCopy: true
}
}