From 87547fca869840b8597199f5134bc1a873a4f5d5 Mon Sep 17 00:00:00 2001 From: Joey Chen <142381267+JoeyC-Dev@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:58:58 +0800 Subject: [PATCH] feat: use server-side date to generate copyright year (#217) --- src/components/Footer.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 90f2da1..dd07747 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,6 +2,7 @@ import { profileConfig } from '../config' import { url } from '../utils/url-utils' +const currentYear = new Date().getFullYear() --- @@ -9,7 +10,7 @@ import { url } from '../utils/url-utils'
- © 2024 {profileConfig.name}. All Rights Reserved. / + © {currentYear} {profileConfig.name}. All Rights Reserved. / RSS / Sitemap
Powered by