2023-05-25 10:49:09 +02:00
|
|
|
const { DateTime } = require("luxon");
|
|
|
|
|
2022-06-22 11:50:54 +02:00
|
|
|
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')
|
2023-06-04 20:03:32 +02:00
|
|
|
});
|
|
|
|
|
2022-06-22 11:50:54 +02:00
|
|
|
return {
|
|
|
|
passthroughFileCopy: true
|
|
|
|
}
|
|
|
|
}
|