From 2f1082c42ac5a7964c0d4fa9d93d39a0dc3a59cf Mon Sep 17 00:00:00 2001 From: Stanislav Zhuk Date: Mon, 3 Nov 2025 18:03:11 +0200 Subject: [PATCH] chore(sponsor-banner): add link to sustainability article --- src/components/SponsorsBanner.astro | 44 ++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/src/components/SponsorsBanner.astro b/src/components/SponsorsBanner.astro index 5dee616c..ba9fbfeb 100644 --- a/src/components/SponsorsBanner.astro +++ b/src/components/SponsorsBanner.astro @@ -15,6 +15,10 @@ function formatCurrency(value: number): string { maximumFractionDigits: 0, }).format(value); } + +// Check if we're on the sustainability page +const currentPath = Astro.url.pathname; +const isOnSustainabilityPage = currentPath === '/blog/sustainability-for-ddev/' || currentPath === '/blog/sustainability-for-ddev'; ---