mirror of
https://codeberg.org/lauralani/www-lauka-net.git
synced 2024-11-23 20:50:40 +01:00
try with new js
This commit is contained in:
parent
7284c04b60
commit
5ba660d1eb
1 changed files with 1 additions and 3 deletions
|
@ -10,9 +10,7 @@ module.exports = function(eleventyConfig) {
|
|||
return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL)
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("copyrightyear", function() {
|
||||
return DateTime.local().toFormat('y')
|
||||
});
|
||||
eleventyConfig.addShortcode("copyrightyear", () => `${new Date().getFullYear()}`);
|
||||
|
||||
return {
|
||||
passthroughFileCopy: true
|
||||
|
|
Loading…
Reference in a new issue