mirror of
https://codeberg.org/lauralani/www-lauka-net.git
synced 2024-11-23 20:50:40 +01:00
20 lines
648 B
JavaScript
20 lines
648 B
JavaScript
const { DateTime } = require("luxon");
|
|
|
|
module.exports = function(eleventyConfig) {
|
|
eleventyConfig.addPassthroughCopy({ "static/.well-known": ".well-known" })
|
|
eleventyConfig.addPassthroughCopy({ "static/certificates": "certificates" })
|
|
eleventyConfig.addPassthroughCopy({ "static/css": "css" })
|
|
|
|
|
|
eleventyConfig.addFilter("timestamp", function(value) {
|
|
return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL)
|
|
});
|
|
|
|
eleventyConfig.addFilter("copyrightyear", function(value) {
|
|
return DateTime.Now().toLocaleString({ year: 'numeric'})
|
|
});
|
|
|
|
return {
|
|
passthroughFileCopy: true
|
|
}
|
|
}
|