diff --git a/.eleventy.js b/.eleventy.js index 6d6652e..afd55c2 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -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