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

19 lines
645 B
JavaScript
Raw Normal View History

2023-05-25 10:49:09 +02:00
const { DateTime } = require("luxon");
module.exports = function(eleventyConfig) {
2023-08-08 07:31:11 +02:00
//eleventyConfig.addPassthroughCopy({ "static/.well-known": ".well-known" })
//eleventyConfig.addPassthroughCopy({ "static/certificates": "certificates" })
//eleventyConfig.addPassthroughCopy({ "static/css": "css" })
//eleventyConfig.addPassthroughCopy({ "static/robots.txt": "robots.txt" })
eleventyConfig.addPassthroughCopy("static/**")
2023-05-25 10:46:40 +02:00
eleventyConfig.addFilter("timestamp", function(value) {
2023-06-27 18:41:33 +02:00
return DateTime.fromJSDate(value).toFormat('LLLL d, yyyy HH:mm ZZZZ')
2023-05-25 10:46:40 +02:00
});
return {
passthroughFileCopy: true
}
}