mirror of
https://codeberg.org/lauralani/www-lauka-net.git
synced 2024-11-24 05:00:02 +01:00
update copyright filter
This commit is contained in:
parent
08499ce961
commit
5ea2dbf283
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module.exports = function(eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addFilter("copyrightyear", function(value) {
|
eleventyConfig.addFilter("copyrightyear", function(value) {
|
||||||
return DateTime.Now().toLocaleString({ year: 'numeric'})
|
return DateTime.fromJSDate(value).toLocaleString({ year: 'numeric'})
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue