File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const {
2020} = sponsor .data ;
2121
2222const 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
Original file line number Diff line number Diff 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 ) => ({
You can’t perform that action at this time.
0 commit comments