From b792f3ca738de62499965783439c34fcc68f5bc4 Mon Sep 17 00:00:00 2001 From: Nghia Date: Sun, 15 Mar 2026 18:12:47 +0100 Subject: [PATCH] fix(components/footer): conditional render social link --- src/components/Footer.astro | 221 ++++++++++++++++++++---------------- 1 file changed, 122 insertions(+), 99 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index a76ae166eb..c8800030dd 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -19,105 +19,128 @@ const hasEducation = siteConfig.education && siteConfig.education.length > 0; {siteConfig.title}

- - - - - - - - - - - - - - - - + { + siteConfig.social?.email && ( + + + + + + + + ) + } + { + siteConfig.social?.linkedin && ( + + + <> + + + + + + + + + + ) + } + { + siteConfig.social?.twitter && ( + + + <> + + + + + + + ) + } + { + siteConfig.social?.github && ( + + + <> + + + + + + ) + }