Skip to content

Commit f50e6cc

Browse files
authored
Update for community partners. (#1212)
1 parent fd5c0a1 commit f50e6cc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/SponsorCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const logo = sponsorLogos[sponsor.id];
6767
description && (
6868
<div class="flex-1">
6969
<h2 class="text-2xl font-bold mb-2 ">
70-
{ !isSponsorPage ?
70+
{ !isSponsorPage && tier !== 'Partners' ?
7171
<a href={`/sponsor/${sponsor.id}`}>
7272
{title}
7373
</a> :

src/pages/sponsor/[sponsor]/index.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ const {sponsor } = Astro.params;
1111
1212
export async function getStaticPaths() {
1313
14-
const sponsors = await getCollection("sponsors", ({ data }) => {
15-
return import.meta.env.MODE === "production" ? data.draft !== true : true;
16-
});
14+
const isProduction = import.meta.env.MODE === "production";
15+
16+
const sponsors = await getCollection("sponsors", ({ data }) =>
17+
data.tier !== "Partners" && (isProduction ? data.draft !== true : true)
18+
);
1719
1820
return sponsors.map((sponsor: any) => ({
1921
params: {

0 commit comments

Comments
 (0)