Skip to content

Commit dcea558

Browse files
authored
lawyers HATE this one simple trick
1 parent 4c3bba9 commit dcea558

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/[lang]/index.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { getLangFromUrl, useTranslations } from "../../i18n/utils";
55
const lang = getLangFromUrl(Astro.url);
66
const t = useTranslations(lang);
77
import { VERSION } from "astro:env/client";
8+
9+
let currentYear = getCurrentYear();
10+
function getCurrentYear() {
11+
return new Date().getFullYear(); // We would do this client side but doing it at build time won't require importing another framework
12+
}
813
---
914

1015
<Layout title="Home">
@@ -44,7 +49,7 @@ import { VERSION } from "astro:env/client";
4449
Click here to reset your instance
4550
</button>
4651
</div>
47-
<p>&copy; Nebula Services 2025</p>
52+
<p>&copy; Nebula Services {currentYear}</p>
4853
</div>
4954
</div>
5055
</Layout>

0 commit comments

Comments
 (0)