From e1c6e9d9234e4971a47adbaef367df3cb2924f35 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sat, 11 Apr 2026 00:39:01 -0300 Subject: [PATCH] feat: simplify copyright year display in site footer --- src/ui/components/internal/site-footer.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/ui/components/internal/site-footer.tsx b/src/ui/components/internal/site-footer.tsx index c59f1fa..ecf5221 100644 --- a/src/ui/components/internal/site-footer.tsx +++ b/src/ui/components/internal/site-footer.tsx @@ -1,13 +1,17 @@ import { siteConfig } from '@/site.config'; -export function SiteFooter() { - const buildCopyrightYear = (): string => { - if (siteConfig.copyright.initialYear == new Date().getFullYear()) { - return `(${new Date().getFullYear()})`; - } - return `(${siteConfig.copyright.initialYear}-${new Date().getFullYear()})`; - }; + + + + + + + + +export function SiteFooter() { + const copyrightHolder = + siteConfig.copyright.company || siteConfig.author.name; return (