test copyright year

This commit is contained in:
Adora Laura Kalb 2023-06-04 20:20:24 +02:00
parent 89a9319cb7
commit 0da5a2e93c
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 4 additions and 4 deletions

View file

@ -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'})
});

View file

@ -103,8 +103,8 @@ date: Last Modified
<br/><br/>
This page makes due without any cookies, frontend javascript, tracking and databases
in the effort to make the web quick and usable again :)
<br/>This page was last updated at {{ page.date | timestamp }}
<br/><br/>
Copyright Laura Kalb {{ copyrightyear }}
<br/><br/>This page was last updated at {{ page.date | timestamp }}
<br/>
Copyright Laura Kalb {{ date | copyrightyear }}
<br/><br/><a href="/impressum.html">Impressum und Datenschutzerklärung</a>
</p>