From 862436f8c9823bc7fe2addd962d14ad2b4553f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Goldberg=20=E2=9C=A8?= Date: Mon, 23 Sep 2024 11:55:11 -0400 Subject: [PATCH] feat: added standalone `ad/sponsors` page (#125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💖 --- src/components/SponsorLogos.astro | 9 ++--- src/data/sponsors.ts | 7 ++++ src/pages/ad/speakers.astro | 6 +--- src/pages/ad/sponsors.astro | 55 +++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 12 deletions(-) create mode 100644 src/pages/ad/sponsors.astro diff --git a/src/components/SponsorLogos.astro b/src/components/SponsorLogos.astro index 105dbae..8602666 100644 --- a/src/components/SponsorLogos.astro +++ b/src/components/SponsorLogos.astro @@ -2,12 +2,7 @@ import _ from "lodash"; import { Image } from "astro:assets"; -import { sponsorsBySlug } from "~/data/sponsors"; - -const sponsorGroups = _.groupBy( - Object.values(sponsorsBySlug), - (sponsor) => sponsor.placement, -); +import { sponsorsByPlacement } from "~/data/sponsors"; interface Props { light?: boolean; @@ -24,7 +19,7 @@ const { size = "normal", light } = Astro.props; ]} > { - Object.values(sponsorGroups).map((sponsors) => ( + Object.values(sponsorsByPlacement).map((sponsors) => (