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

17 lines
512 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)
});
return {
passthroughFileCopy: true
}
}