on master help sign in
index: search articles for information
commit6e8ae6d20be8907d828aa73357f50aa46953e1b8 authorMatilde Park <matilde.park@urbit.org> dateMon 3 Oct 2022, 17:02 (4 years ago) parent945b5f1
1 file changed+21−14
pages/index.js+21−14
pages/index.js+21−14
@@ -68,20 +68,20 @@ export default function Home({
6868 </h2>
6969
7070 <div className="space-y-4">
71− <p className="max-w-prose">
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.
74− </p>
75− <p className="max-w-prose pb-4">
76− Today, Urbit is a real system with thousands of users that are
77− building all kinds of communities, software, DAOs, and more. And
78− it’s getting better every day.{" "}
79− </p>
80− <Link href="/overview" passHref>
81− <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
82− Read the Overview
83− </a>
84− </Link>
71+ <p className="max-w-prose">
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.
74+ </p>
75+ <p className="max-w-prose pb-4">
76+ Today, Urbit is a real system with thousands of users that are
77+ building all kinds of communities, software, DAOs, and more. And
78+ it’s getting better every day.{" "}
79+ </p>
80+ <Link href="/overview" passHref>
81+ <a className="button-lg bg-green-400 text-white type-ui max-w-fit">
82+ Read the Overview
83+ </a>
84+ </Link>
8585 </div>
8686
8787 </div>
@@ -302,6 +302,12 @@ export async function getStaticProps() {
302302 "date"
303303 )[0];
304304
305+ const articles = getAllPosts(
306+ ["title", "image", "date", "podcast", "slug"],
307+ "articles",
308+ "date"
309+ );
310+
305311 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
306312 const podcasts = getAllPosts(
307313 ["title", "image", "date", "podcast", "slug"],
@@ -335,6 +341,7 @@ export async function getStaticProps() {
335341 ["featured-1", "featured-2", "featured-3"].forEach((feat) => {
336342 if (ecosystem?.[feat]) {
337343 const matchedPost = [
344+ ...articles.map((e) => ({ ...e, type: "Article" })),
338345 ...applications.map((e) => ({ ...e, type: "Application" })),
339346 ...organizations.map((e) => ({ ...e, type: "Organization" })),
340347 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),