diff --git a/.eleventy.js b/.eleventy.js index 31d2267..5133060 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -10,7 +10,7 @@ module.exports = function(eleventyConfig) { return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL) }); - eleventyConfig.addFilter("copyrightyear", function() { + eleventyConfig.addFilter("copyrightyear", function(value) { return DateTime.Now().toLocaleString({ year: 'numeric'}) }); diff --git a/index.njk b/index.njk index d0e3c78..e403765 100644 --- a/index.njk +++ b/index.njk @@ -103,8 +103,8 @@ date: Last Modified

This page makes due without any cookies, frontend javascript, tracking and databases in the effort to make the web quick and usable again :) -
This page was last updated at {{ page.date | timestamp }} -

- Copyright Laura Kalb {{ copyrightyear }} +

This page was last updated at {{ page.date | timestamp }} +
+ Copyright Laura Kalb {{ date | copyrightyear }}

Impressum und Datenschutzerklärung