From 6ad840e959750454eac8a24f7099ef502f139e80 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 30 Jan 2026 22:45:06 +0000 Subject: [PATCH] fix: make footer year dynamic Updated the footer copyright year to be dynamically generated using the current year instead of a hardcoded 2023 value. - Added currentYear context variable to vite.config.js using new Date().getFullYear() - Updated footer.html to use {{currentYear}} Handlebars variable Closes #214 Co-authored-by: Jevin Maltais --- website/src/partials/footer/footer.html | 2 +- website/vite.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/partials/footer/footer.html b/website/src/partials/footer/footer.html index e70d52b4..97ab1e0c 100644 --- a/website/src/partials/footer/footer.html +++ b/website/src/partials/footer/footer.html @@ -68,7 +68,7 @@
Sitemap
-

© 2023 TypeStream.

+

© {{currentYear}} TypeStream.

diff --git a/website/vite.config.js b/website/vite.config.js index 620f0ce9..b3893065 100644 --- a/website/vite.config.js +++ b/website/vite.config.js @@ -23,6 +23,9 @@ export default defineConfig({ plugins: [ handlebars({ partialDirectory: resolve(__dirname, "src/partials"), + context: { + currentYear: new Date().getFullYear(), + }, }), ], css: {