on master help sign in
ecosystem: make date rendering consistent with the rest of the site, sort reverse chronlogically
b6caa9cMatilde Park
pages/ecosystem/index.js+14−9
@@ -100,9 +100,12 @@ export default function Ecosystem({
100 </a>
100 </a>
101 </Link>
101 </Link>
102
102
103− <div className="pt-36">
103+ <div className="pt-36">
104 <h3 className="pb-2">Urbit Monthly</h3>
104 <h3 className="pb-2">Urbit Monthly</h3>
105+ <p className="pb-8">
105− <p className="pb-8">Get the Spotlight in your inbox along with updates on everything Urbit.</p>
106+ Get the Spotlight in your inbox along with updates on
107+ everything Urbit.
108+ </p>
106 <Contact emphasize className="w-full" />
109 <Contact emphasize className="w-full" />
107 </div>
110 </div>
108 </>
111 </>
@@ -115,7 +118,6 @@ export default function Ecosystem({
115 hidden: type === undefined,
118 hidden: type === undefined,
116 })}
119 })}
117 >
120 >
118−
119 {type === "organizations" &&
121 {type === "organizations" &&
120 organizations.map((org) => (
122 organizations.map((org) => (
121 <Link href={`/organizations/${org.slug}`}>
123 <Link href={`/organizations/${org.slug}`}>
@@ -140,8 +142,10 @@ export default function Ecosystem({
140 )}
142 )}
141 </div>
143 </div>
142 <div className="">
144 <div className="">
143− <p className="text-left font-bold">{app.title}</p>
145+ <p className="text-left font-bold">{app.title}</p>
144− <p className="text-left text-wall-400 font-light">{app.description}</p>
146+ <p className="text-left text-wall-400 font-light">
147+ {app.description}
148+ </p>
145 </div>
149 </div>
146 </div>
150 </div>
147 </Link>
151 </Link>
@@ -165,7 +169,9 @@ export default function Ecosystem({
165 <p className="min-w-0 min-h-0 leading-5 ">
169 <p className="min-w-0 min-h-0 leading-5 ">
166 {pod.title}
170 {pod.title}
167 </p>
171 </p>
168− <p className="text-wall-400">{pod.date}</p>
172+ <p className="text-wall-400">
173+ {formatDate(generateDisplayDate(pod.date))}
174+ </p>
169 </div>
175 </div>
170 </div>
176 </div>
171 </Link>
177 </Link>
@@ -173,8 +179,6 @@ export default function Ecosystem({
173 </div>
179 </div>
174 </div>
180 </div>
175 </div>
181 </div>
176−
177−
178 </Section>
182 </Section>
179 </SingleColumn>
183 </SingleColumn>
180 <Footer />
184 <Footer />
@@ -324,7 +328,8 @@ export async function getStaticProps({}) {
324 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
328 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
325 const podcasts = getAllPosts(
329 const podcasts = getAllPosts(
326 ["title", "image", "date", "podcast", "slug"],
330 ["title", "image", "date", "podcast", "slug"],
327− "podcasts"
331+ "podcasts",
332+ "date"
328 );
333 );
329 const organizations = getAllPosts(
334 const organizations = getAllPosts(
330 ["title", "image", "slug"],
335 ["title", "image", "slug"],