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

21 lines
648 B
JavaScript
Raw Normal View History

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:20:24 +02:00
eleventyConfig.addFilter("copyrightyear", function(value) {
return DateTime.Now().toLocaleString({ year: 'numeric'})
});
return {
passthroughFileCopy: true
}
}