From 6899f48775959a994d0c08198f3422d302945982 Mon Sep 17 00:00:00 2001 From: hypha Date: Mon, 30 Jun 2025 15:11:34 +0100 Subject: [PATCH 1/4] add sprint and open space tiers; allow sponsors to belong to multiple tiers --- src/components/sections/sponsors/sponsors.astro | 16 ++++++++++++++-- src/pages/sponsors.astro | 13 ++++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) 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/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[]>); --- From ab3de342a5bdcdd45e3cb3aaff54c86c79b6b2f0 Mon Sep 17 00:00:00 2001 From: hypha Date: Mon, 30 Jun 2025 15:12:24 +0100 Subject: [PATCH 2/4] add anaconda's logo --- src/content/sponsors/anaconda/anaconda.svg | 1 + src/content/sponsors/anaconda/index.md | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/content/sponsors/anaconda/anaconda.svg create mode 100644 src/content/sponsors/anaconda/index.md 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..421aca54d --- /dev/null +++ b/src/content/sponsors/anaconda/index.md @@ -0,0 +1,20 @@ +--- +name: Anaconda +url: https://www.anaconda.com +industry: "Developer Tools & Error Tracking" +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 +--- + From 132b14bfd956cb94552500f4a3b18225b24573bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:17:43 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/content/sponsors/anaconda/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md index 421aca54d..0f721ec8c 100644 --- a/src/content/sponsors/anaconda/index.md +++ b/src/content/sponsors/anaconda/index.md @@ -3,7 +3,9 @@ name: Anaconda url: https://www.anaconda.com industry: "Developer Tools & Error Tracking" 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. " + "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" @@ -17,4 +19,3 @@ socials: tier: Bronze, Open Space, Sprint logo_padding: 20px 0 --- - From d86ddf6e3110ccd81b7ba437edc5cad4dec1ab14 Mon Sep 17 00:00:00 2001 From: hypha Date: Mon, 30 Jun 2025 15:27:08 +0100 Subject: [PATCH 4/4] remove wrong industry field --- src/content/sponsors/anaconda/index.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/sponsors/anaconda/index.md b/src/content/sponsors/anaconda/index.md index 0f721ec8c..eb984bc65 100644 --- a/src/content/sponsors/anaconda/index.md +++ b/src/content/sponsors/anaconda/index.md @@ -1,7 +1,6 @@ --- name: Anaconda url: https://www.anaconda.com -industry: "Developer Tools & Error Tracking" description: "Anaconda is built to advance AI with open source at scale, giving builders and organizations the confidence to increase productivity, and save time,