From 0da5a2e93c547d5bdf1fc95c05802ee2281cdefa Mon Sep 17 00:00:00 2001 From: lauralani Date: Sun, 4 Jun 2023 20:20:24 +0200 Subject: [PATCH] test copyright year --- .eleventy.js | 2 +- index.njk | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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