on master help sign in
index: search articles for information
6e8ae6dMatilde Park
pages/index.js+21−14
@@ -68,20 +68,20 @@ export default function Home({
68 </h2>
68 </h2>
69
69
70 <div className="space-y-4">
70 <div className="space-y-4">
71− <p className="max-w-prose">
71+ <p className="max-w-prose">
72− We realized that in order to fix the internet, we had to build a new
72+ We realized that in order to fix the internet, we had to build a new
73− computer from scratch. Good thing we started over a decade ago.
73+ computer from scratch. Good thing we started over a decade ago.
74− </p>
74+ </p>
75− <p className="max-w-prose pb-4">
75+ <p className="max-w-prose pb-4">
76− Today, Urbit is a real system with thousands of users that are
76+ Today, Urbit is a real system with thousands of users that are
77− building all kinds of communities, software, DAOs, and more. And
77+ building all kinds of communities, software, DAOs, and more. And
78− it’s getting better every day.{" "}
78+ it’s getting better every day.{" "}
79− </p>
79+ </p>
80− <Link href="/overview" passHref>
80+ <Link href="/overview" passHref>
81− <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
81+ <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
82− Read the Overview
82+ Read the Overview
83− </a>
83+ </a>
84− </Link>
84+ </Link>
85 </div>
85 </div>
86
86
87 </div>
87 </div>
@@ -302,6 +302,12 @@ export async function getStaticProps() {
302 "date"
302 "date"
303 )[0];
303 )[0];
304
304
305+ const articles = getAllPosts(
306+ ["title", "image", "date", "podcast", "slug"],
307+ "articles",
308+ "date"
309+ );
310+
305 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
311 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
306 const podcasts = getAllPosts(
312 const podcasts = getAllPosts(
307 ["title", "image", "date", "podcast", "slug"],
313 ["title", "image", "date", "podcast", "slug"],
@@ -335,6 +341,7 @@ export async function getStaticProps() {
335 ["featured-1", "featured-2", "featured-3"].forEach((feat) => {
341 ["featured-1", "featured-2", "featured-3"].forEach((feat) => {
336 if (ecosystem?.[feat]) {
342 if (ecosystem?.[feat]) {
337 const matchedPost = [
343 const matchedPost = [
344+ ...articles.map((e) => ({ ...e, type: "Article" })),
338 ...applications.map((e) => ({ ...e, type: "Application" })),
345 ...applications.map((e) => ({ ...e, type: "Application" })),
339 ...organizations.map((e) => ({ ...e, type: "Organization" })),
346 ...organizations.map((e) => ({ ...e, type: "Organization" })),
340 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),
347 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),