From cd847ac0d3af95b6eaa493f825ce75900a0f96f6 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 10 May 2025 22:33:17 +0200 Subject: [PATCH] Update for community partners. --- src/components/SponsorCard.astro | 2 +- src/pages/sponsor/[sponsor]/index.astro | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/SponsorCard.astro b/src/components/SponsorCard.astro index 38e1f84fc..303cec529 100644 --- a/src/components/SponsorCard.astro +++ b/src/components/SponsorCard.astro @@ -67,7 +67,7 @@ const logo = sponsorLogos[sponsor.id]; description && (

- { !isSponsorPage ? + { !isSponsorPage && tier !== 'Partners' ? {title} : diff --git a/src/pages/sponsor/[sponsor]/index.astro b/src/pages/sponsor/[sponsor]/index.astro index d9fefdc92..c3a25d7b7 100644 --- a/src/pages/sponsor/[sponsor]/index.astro +++ b/src/pages/sponsor/[sponsor]/index.astro @@ -11,9 +11,11 @@ const {sponsor } = Astro.params; export async function getStaticPaths() { -const sponsors = await getCollection("sponsors", ({ data }) => { - return import.meta.env.MODE === "production" ? data.draft !== true : true; -}); + const isProduction = import.meta.env.MODE === "production"; + + const sponsors = await getCollection("sponsors", ({ data }) => + data.tier !== "Partners" && (isProduction ? data.draft !== true : true) + ); return sponsors.map((sponsor: any) => ({ params: {