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: {