diff --git a/src/components/sections/sponsors/sponsors.astro b/src/components/sections/sponsors/sponsors.astro index edd2700fe..3eb63babc 100644 --- a/src/components/sections/sponsors/sponsors.astro +++ b/src/components/sections/sponsors/sponsors.astro @@ -17,8 +17,10 @@ const tiers = [ "Startups", "Bronze", "Patron", + "Sprint", "Financial Aid", - "Supporters", + "Open Space", + "Supporters", "Partners", "Media Partners" ] as const; @@ -27,10 +29,20 @@ const sponsors = await getCollection("sponsors"); let hasSponsors = false; +function getSponsorTiers(sponsor) { + if (typeof sponsor.data.tier === 'string') { + return sponsor.data.tier.split(',').map(tier => tier.trim()); + } + return Array.isArray(sponsor.data.tier) ? sponsor.data.tier : [sponsor.data.tier]; +} + const sponsorTiers = tiers .map((tier) => { const tierSponsors = sponsors.filter( - (sponsor) => sponsor.data.tier === tier, + (sponsor) => { + const sponsorTiers = getSponsorTiers(sponsor); + return sponsorTiers.includes(tier); + } ); if (tierSponsors.length > 0) { diff --git a/src/content/sponsors/anaconda/anaconda.svg b/src/content/sponsors/anaconda/anaconda.svg new file mode 100644 index 000000000..dd34933b4 --- /dev/null +++ b/src/content/sponsors/anaconda/anaconda.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md new file mode 100644 index 000000000..eb984bc65 --- /dev/null +++ b/src/content/sponsors/anaconda/index.md @@ -0,0 +1,20 @@ +--- +name: Anaconda +url: https://www.anaconda.com +description: + "Anaconda is built to advance AI with open source at scale, giving builders + and organizations the confidence to increase productivity, and save time, + spend and risk associated with open source. " +socials: + linkedin: "https://www.linkedin.com/company/anacondainc" + twitter: "https://x.com/anacondainc" + github: "https://github.com/ContinuumIO" + discord: "https://discord.com/invite/3zWZbsEx7A" + mastodon: + bluesky: + facebook: "https://www.facebook.com/anacondainc" + instagram: "https://www.instagram.com/anaconda_inc/" + youtube: "https://www.youtube.com/c/ContinuumIo" +tier: Bronze, Open Space, Sprint +logo_padding: 20px 0 +--- diff --git a/src/pages/sponsors.astro b/src/pages/sponsors.astro index a010022d6..838d67da0 100644 --- a/src/pages/sponsors.astro +++ b/src/pages/sponsors.astro @@ -23,19 +23,30 @@ const tiers = [ "Silver", "Bronze", "Patron", + "Sprint", "Financial Aid", + "Open Space", "Supporters", "Partners", ] as const; +function getSponsorTiers(sponsor) { + if (typeof sponsor.data.tier === 'string') { + return sponsor.data.tier.split(',').map(tier => tier.trim()); + } + return Array.isArray(sponsor.data.tier) ? sponsor.data.tier : [sponsor.data.tier]; +} + // Group sponsors by their tier const grouped = sponsors.reduce((acc, sponsor) => { - const tier = sponsor.data.tier; + const sponsorTiers = getSponsorTiers(sponsor); + sponsorTiers.forEach(tier => { const key = tier ?? 'unknown'; if (!acc[key]) { acc[key] = []; } acc[key].push(sponsor); + }); return acc; }, {} as Record[]>); ---