File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-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 class = " text-2xl font-bold mb-2 " >
70- { ! isSponsorPage ?
70+ { ! isSponsorPage && tier !== ' Partners ' ?
7171 <a href = { ` /sponsor/${sponsor .id } ` } >
7272 { title }
7373 </a > :
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ const {sponsor } = Astro.params;
1111
1212export 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: {
You can’t perform that action at this time.
0 commit comments