Skip to content

Commit 0e38fb8

Browse files
committed
Update sponsors pages
1 parent 8949183 commit 0e38fb8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/SponsorCard.astro

Lines changed: 2 additions & 2 deletions
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 id=`sponsor-${sponsorId}` class="sponsor text-2xl font-bold mb-2 ">
70-
{ !isSponsorPage && tier !== 'Partners' ?
70+
{ !isSponsorPage && tier !== 'Partners' && ["Diamond", "Platinum"].includes(tier) ?
7171
<a href={`/sponsor/${sponsor.id}`}>
7272
{title}
7373
</a> :
@@ -103,7 +103,7 @@ const logo = sponsorLogos[sponsor.id];
103103
{(tier !== "Partners") && website && (
104104
<div class="website-btn-container flex flex-col sm:flex-row justify-center gap-2 mt-4">
105105

106-
{ !isSponsorPage && sponsor.body && tier && ["Gold", "Platinum"].includes(tier) &&
106+
{ !isSponsorPage && sponsor.body && tier && ["Diamond", "Platinum"].includes(tier) &&
107107
<a href={`/sponsor/${sponsor.id}`} class="website-btn-outline">
108108
About {title}
109109
</a>

src/components/SponsorLogo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {
2020
} = sponsor.data;
2121
2222
const logo = sponsorLogos[sponsor.id];
23-
const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier==="Platinum" ? `/sponsor/${sponsorId}` : tier==="Media Partners" ? `/media-partners#sponsor-${sponsorId}` : tier==="Startups" ? `/startups#sponsor-${sponsorId}` : ""
23+
const slug = tier==="Partners"? `/community-partners#sponsor-${sponsorId}`: tier==="Platinum" ? `/sponsor/${sponsorId}` : tier==="Media Partners" ? `/media-partners#sponsor-${sponsorId}` : tier==="Startups" ? `/startups#sponsor-${sponsorId}` : `/sponsors#sponsor-${sponsorId}`
2424
2525
---
2626

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function getStaticPaths() {
1414
const isProduction = import.meta.env.MODE === "production";
1515
1616
const sponsors = await getCollection("sponsors", ({ data }) =>
17-
data.tier && ["Gold", "Platinum"].includes(data.tier) && (isProduction ? data.draft !== true : true)
17+
data.tier && ["Diamond", "Platinum"].includes(data.tier) && (isProduction ? data.draft !== true : true)
1818
);
1919
2020
return sponsors.map((sponsor: any) => ({

0 commit comments

Comments
 (0)