Skip to content

Commit

Permalink
Update footer to use dynamic year (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abd-Elhadi authored Sep 18, 2024
1 parent 37c5d32 commit eb51ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions www/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ module.exports = (config) => {
}).toFormat("dd-MM-yyyy");
});

config.addShortcode("year", () => `${new Date().getFullYear()}`);

// Markdown
config.setLibrary(
'md',
Expand Down
2 changes: 1 addition & 1 deletion www/src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ layout: layouts/page.njk
</div>
<div class="mt-12 border-t border-gray-200 py-8">
<p class="text-base text-gray-400 xl:text-center">
&copy; 2022 fritz2 dev team
&copy; {% year %} fritz2 dev team
</p>
</div>
</div>
Expand Down

0 comments on commit eb51ed2

Please sign in to comment.