We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3bba9 commit dcea558Copy full SHA for dcea558
src/pages/[lang]/index.astro
@@ -5,6 +5,11 @@ import { getLangFromUrl, useTranslations } from "../../i18n/utils";
5
const lang = getLangFromUrl(Astro.url);
6
const t = useTranslations(lang);
7
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
+}
13
---
14
15
<Layout title="Home">
@@ -44,7 +49,7 @@ import { VERSION } from "astro:env/client";
44
49
Click here to reset your instance
45
50
</button>
46
51
</div>
47
- <p>© Nebula Services 2025</p>
52
+ <p>© Nebula Services {currentYear}</p>
48
53
54
55
</Layout>
0 commit comments