diff --git a/.eleventy.js b/.eleventy.js index 891d16b..31d2267 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -10,6 +10,10 @@ module.exports = function(eleventyConfig) { return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL) }); + eleventyConfig.addFilter("copyrightyear", function() { + return DateTime.Now().toLocaleString({ year: 'numeric'}) + }); + return { passthroughFileCopy: true } diff --git a/index.njk b/index.njk index fc2baff..d0e3c78 100644 --- a/index.njk +++ b/index.njk @@ -2,6 +2,7 @@ layout: layouts/home.njk title: "lauka.net" eleventyExcludeFromCollections: true +date: Last Modified ---