Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/community-partners.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import Layout from "@layouts/SectionLayout.astro";
import SponsorCard from "@components/SponsorCard.astro";
import Headline from "@ui/Headline.astro";

const sponsors = await getCollection("sponsors", ({ data }) => {
const sponsors = (await getCollection("sponsors", ({ data }) => {
const isProd = import.meta.env.MODE === "production";
const notDraft = !isProd || data.draft !== true;
const isPartner = data.tier === "Partners";
return notDraft && isPartner;
});
})).sort((a, b) => a.id.localeCompare(b.id));

---

Expand Down