From 12dabe1c7c6fe472830477416bfa099418fbd296 Mon Sep 17 00:00:00 2001 From: Chom <112128328+tomasohCHOM@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:20:57 -0700 Subject: [PATCH] Switch markdown data layout --- .prettierrc.mjs | 1 + src/contributors/sp24/26samaahmed.md | 6 +++- src/contributors/sp24/BradleyB30.md | 6 +++- src/contributors/sp24/MarioPinzon.md | 6 +++- src/contributors/sp24/SepehrKermanshah.md | 6 +++- src/contributors/sp24/akanksh5.md | 6 +++- src/contributors/sp24/belal.md | 6 +++- src/contributors/sp24/big-o.md | 6 +++- src/contributors/sp24/dustinchavez1.md | 6 +++- src/contributors/sp24/ethanthatonekid.md | 6 ++++ src/contributors/sp24/evancpsc.md | 6 +++- src/contributors/sp24/gustavonecochea.md | 6 +++- src/contributors/sp24/hallowsyves.md | 6 ++++ src/contributors/sp24/jeeth25.md | 8 +++++- src/contributors/sp24/jimalvarez566.md | 6 ++++ src/contributors/sp24/joelcodingwindigan.md | 6 +++- src/contributors/sp24/johncmanuel.md | 6 +++- src/contributors/sp24/jowen-ster.md | 6 +++- src/contributors/sp24/justinplee.md | 6 +++- src/contributors/sp24/karnikaavelumani.md | 6 +++- src/contributors/sp24/keillor.md | 6 +++- src/contributors/sp24/kicacho.md | 6 +++- src/contributors/sp24/markryangarcia.md | 6 +++- src/contributors/sp24/mattulau.md | 6 +++- src/contributors/sp24/rathichandar.md | 6 +++- src/contributors/sp24/santosh.md | 6 +++- src/contributors/sp24/thefishey.md | 6 +++- src/contributors/sp24/tomasohchom.md | 6 +++- src/contributors/sp24/vicky.md | 6 +++- src/layouts/Layout.astro | 32 +++++++++------------ src/pages/sp24.astro | 30 ++++++++++++++++--- 31 files changed, 185 insertions(+), 48 deletions(-) diff --git a/.prettierrc.mjs b/.prettierrc.mjs index 38ce14b..4489e17 100644 --- a/.prettierrc.mjs +++ b/.prettierrc.mjs @@ -1,4 +1,5 @@ /** @type {import("prettier").Config} */ export default { plugins: ["prettier-plugin-astro"], + htmlWhitespaceSensitivity: "strict", }; diff --git a/src/contributors/sp24/26samaahmed.md b/src/contributors/sp24/26samaahmed.md index 33bda46..b1e4f7f 100644 --- a/src/contributors/sp24/26samaahmed.md +++ b/src/contributors/sp24/26samaahmed.md @@ -1 +1,5 @@ -[**@26samaahmed**](https://github.com/26samaahmed): Hiiiiiii, i'm sama and i'm a sophomore in cs!! +--- +name: "26samaahmed" +username: "26samaahmed" +message: "Hiiiiiii, i'm sama and i'm a sophomore in cs!!" +--- diff --git a/src/contributors/sp24/BradleyB30.md b/src/contributors/sp24/BradleyB30.md index db16525..008f868 100644 --- a/src/contributors/sp24/BradleyB30.md +++ b/src/contributors/sp24/BradleyB30.md @@ -1 +1,5 @@ -[**@BradleyB30**](https://github.com/bradleyb30): Hi! +--- +name: "BradleyB30" +username: "bradleyb3" +message: "Hi" +--- diff --git a/src/contributors/sp24/MarioPinzon.md b/src/contributors/sp24/MarioPinzon.md index 19f53d2..19a6be2 100644 --- a/src/contributors/sp24/MarioPinzon.md +++ b/src/contributors/sp24/MarioPinzon.md @@ -1 +1,5 @@ -[**@tvpower89**](https://github.com/tvpower89): it's a me, Mario! +--- +name: "tvpower89" +username: "tvpower89" +message: "it's a me, Mario!" +--- diff --git a/src/contributors/sp24/SepehrKermanshah.md b/src/contributors/sp24/SepehrKermanshah.md index 039e5d0..d10bd71 100644 --- a/src/contributors/sp24/SepehrKermanshah.md +++ b/src/contributors/sp24/SepehrKermanshah.md @@ -1 +1,5 @@ -[**@SepehrDebah**](https://github.com/SepehrDebah): Hi I'm Sepehr +--- +name: "SepehrDebah" +username: "SepehrDebah" +message: "Hi I'm Sepehr" +--- diff --git a/src/contributors/sp24/akanksh5.md b/src/contributors/sp24/akanksh5.md index 0430afc..cc8a8f1 100644 --- a/src/contributors/sp24/akanksh5.md +++ b/src/contributors/sp24/akanksh5.md @@ -1 +1,5 @@ -[**@akanksh5**](https://github.com/akanksh5) Hello there! +--- +name: "akanksh5" +username: "akanksh5" +message: "Hello there!" +--- diff --git a/src/contributors/sp24/belal.md b/src/contributors/sp24/belal.md index 2f2308d..45a503b 100644 --- a/src/contributors/sp24/belal.md +++ b/src/contributors/sp24/belal.md @@ -1 +1,5 @@ -[**@belalaskaik**](https://github.com/Belalaskaik): Fintech Passionate +--- +name: "belalaskaik" +username: "belalaskaik" +message: "Fintech Passionate" +--- diff --git a/src/contributors/sp24/big-o.md b/src/contributors/sp24/big-o.md index 7325c43..49d16ac 100644 --- a/src/contributors/sp24/big-o.md +++ b/src/contributors/sp24/big-o.md @@ -1 +1,5 @@ -[**Big O**](https://github.com/oscisn93): VIM Enthusiast +--- +name: "Big O" +username: "oscisn93" +message: "VIM Enthusiast" +--- diff --git a/src/contributors/sp24/dustinchavez1.md b/src/contributors/sp24/dustinchavez1.md index 32f0238..ea83184 100644 --- a/src/contributors/sp24/dustinchavez1.md +++ b/src/contributors/sp24/dustinchavez1.md @@ -1 +1,5 @@ -[**@dustinchavez1**](https://github.com/dustinchavez1): Yooooooooo +--- +name: "dustinchavez1" +username: "dustinchavez1" +message: "Yooooooooo" +--- diff --git a/src/contributors/sp24/ethanthatonekid.md b/src/contributors/sp24/ethanthatonekid.md index 6c64e4c..7735d96 100644 --- a/src/contributors/sp24/ethanthatonekid.md +++ b/src/contributors/sp24/ethanthatonekid.md @@ -1 +1,7 @@ +--- +name: "EthanThatOneKid" +username: "etok.codes" +message: "wuz here" +--- + [**@EthanThatOneKid**](https://etok.codes/) wuz here! diff --git a/src/contributors/sp24/evancpsc.md b/src/contributors/sp24/evancpsc.md index 613abe3..0e77814 100644 --- a/src/contributors/sp24/evancpsc.md +++ b/src/contributors/sp24/evancpsc.md @@ -1 +1,5 @@ -[**@evancpsc**](https://github.com/evancpsc): Bassist +--- +name: "evancpsc" +username: "evancpsc" +message: "Bassist" +--- diff --git a/src/contributors/sp24/gustavonecochea.md b/src/contributors/sp24/gustavonecochea.md index f17983a..6265279 100644 --- a/src/contributors/sp24/gustavonecochea.md +++ b/src/contributors/sp24/gustavonecochea.md @@ -1 +1,5 @@ -[**@gnecochea**](https://github.com/gnecochea/) Hello, I'm a cs student here at csuf +--- +name: "gnecochea" +username: "gnecochea" +message: "Hello, I'm a cs student here at csuf" +--- diff --git a/src/contributors/sp24/hallowsyves.md b/src/contributors/sp24/hallowsyves.md index 47d1151..155348e 100644 --- a/src/contributors/sp24/hallowsyves.md +++ b/src/contributors/sp24/hallowsyves.md @@ -1 +1,7 @@ +--- +name: "HallowsYves" +username: "HallowsYves" +message: "uhhhhhh" +--- + [**@**](https://github.com/HallowsYves): uhhhhhh diff --git a/src/contributors/sp24/jeeth25.md b/src/contributors/sp24/jeeth25.md index 4b519fa..f72dbde 100644 --- a/src/contributors/sp24/jeeth25.md +++ b/src/contributors/sp24/jeeth25.md @@ -1 +1,7 @@ -[**@jeeth25**](https://github.com/jeeth25): Hi, Jeet here. +--- +name: "jeeth25" +username: "jeeth25" +message: "Hi, Jeet here." +--- + +[**@jeeth25**](https://github.com/jeeth25): Hi, Jeet here. diff --git a/src/contributors/sp24/jimalvarez566.md b/src/contributors/sp24/jimalvarez566.md index 2f1fdc8..98780b2 100644 --- a/src/contributors/sp24/jimalvarez566.md +++ b/src/contributors/sp24/jimalvarez566.md @@ -1 +1,7 @@ +--- +name: "jimalvarez566" +username: "jimalvarez566" +message: "Hi" +--- + [**@jimalvarez566**](https://github.com/jimalvarez566): Hi diff --git a/src/contributors/sp24/joelcodingwindigan.md b/src/contributors/sp24/joelcodingwindigan.md index 08543e0..24fa709 100644 --- a/src/contributors/sp24/joelcodingwindigan.md +++ b/src/contributors/sp24/joelcodingwindigan.md @@ -1 +1,5 @@ -[**@JoelCodingWindigan**](https://github.com/JoelCodingWindigan): Sup +--- +name: "JoelCodingWindigan" +username: "JoelCodingWindigan" +message: "Sup" +--- diff --git a/src/contributors/sp24/johncmanuel.md b/src/contributors/sp24/johncmanuel.md index 388bf22..fed349e 100644 --- a/src/contributors/sp24/johncmanuel.md +++ b/src/contributors/sp24/johncmanuel.md @@ -1 +1,5 @@ -[**@johncmanuel**](https://github.com/johncmanuel) hi i'm john +--- +name: "johncmanuel" +username: "johncmanuel" +message: "hi i'm john" +--- diff --git a/src/contributors/sp24/jowen-ster.md b/src/contributors/sp24/jowen-ster.md index 45a56a5..db07947 100644 --- a/src/contributors/sp24/jowen-ster.md +++ b/src/contributors/sp24/jowen-ster.md @@ -1 +1,5 @@ -[**@typos**](https://github.com/JOwen-ster): I love python and add me on discord `typos.` +--- +name: "typos" +username: "JOwen-ster" +message: " I love python and add me on discord `typos.`" +--- diff --git a/src/contributors/sp24/justinplee.md b/src/contributors/sp24/justinplee.md index de15670..b8700a9 100644 --- a/src/contributors/sp24/justinplee.md +++ b/src/contributors/sp24/justinplee.md @@ -1 +1,5 @@ -[**@JustinPLee**](https://github.com/JustinPLee): hi there \ No newline at end of file +--- +name: "JustinPLee" +username: "JustinPLee" +message: "hi there" +--- diff --git a/src/contributors/sp24/karnikaavelumani.md b/src/contributors/sp24/karnikaavelumani.md index 7822ddf..f0c8ee1 100644 --- a/src/contributors/sp24/karnikaavelumani.md +++ b/src/contributors/sp24/karnikaavelumani.md @@ -1 +1,5 @@ -[**@karnikaavelumani**](https://karni.codes/): Karni +--- +name: "karnikaavelumani" +username: "karni.codes" +message: "Hii" +--- diff --git a/src/contributors/sp24/keillor.md b/src/contributors/sp24/keillor.md index 38a1d8b..15bb99e 100644 --- a/src/contributors/sp24/keillor.md +++ b/src/contributors/sp24/keillor.md @@ -1 +1,5 @@ -[**keillor**](https://www.github.com/keillor) +--- +name: "keillor" +username: "keillor" +message: "Hi" +--- diff --git a/src/contributors/sp24/kicacho.md b/src/contributors/sp24/kicacho.md index 649ec47..b144f0e 100644 --- a/src/contributors/sp24/kicacho.md +++ b/src/contributors/sp24/kicacho.md @@ -1 +1,5 @@ -[**@kicacho**](https://github.com/) [Description] Sup. I'm most proficient in Python. \ No newline at end of file +--- +name: "kicacho" +username: "kicacho" +message: "Sup. I'm most proficient in Python." +--- diff --git a/src/contributors/sp24/markryangarcia.md b/src/contributors/sp24/markryangarcia.md index 25af281..609235f 100644 --- a/src/contributors/sp24/markryangarcia.md +++ b/src/contributors/sp24/markryangarcia.md @@ -1 +1,5 @@ -[**@MarkRyanGarcia**](https://github.com/MarkRyanGarcia): How declare variable? +--- +name: "MarkRyanGarcia" +username: "MarkRyanGarcia" +message: "How declare variable?" +--- diff --git a/src/contributors/sp24/mattulau.md b/src/contributors/sp24/mattulau.md index 9f771bd..ed9c444 100644 --- a/src/contributors/sp24/mattulau.md +++ b/src/contributors/sp24/mattulau.md @@ -1 +1,5 @@ -[**@mattulau**](https://github.com/mattulau): cheese enthusiast \ No newline at end of file +--- +name: "mattulau" +username: "mattulau" +message: "cheese enthusiast" +--- diff --git a/src/contributors/sp24/rathichandar.md b/src/contributors/sp24/rathichandar.md index a811af6..8e9709f 100644 --- a/src/contributors/sp24/rathichandar.md +++ b/src/contributors/sp24/rathichandar.md @@ -1 +1,5 @@ -[**@rathichandar**](https://github.com/rathichandar) [Cloud and web 3 Enthusiast] \ No newline at end of file +--- +name: "rathichandar" +username: "rathichandar" +message: "Cloud and web 3 Enthusiast" +--- diff --git a/src/contributors/sp24/santosh.md b/src/contributors/sp24/santosh.md index 2eb3f31..7ac5b01 100644 --- a/src/contributors/sp24/santosh.md +++ b/src/contributors/sp24/santosh.md @@ -1 +1,5 @@ -[**@santosh-burada**](https://github.com/santosh-burada): Hello All \ No newline at end of file +--- +name: "santosh-burada" +username: "santosh-burada" +message: " Hello All" +--- diff --git a/src/contributors/sp24/thefishey.md b/src/contributors/sp24/thefishey.md index aa5055a..710ae55 100644 --- a/src/contributors/sp24/thefishey.md +++ b/src/contributors/sp24/thefishey.md @@ -1 +1,5 @@ -[**@thefishey**](https://github.com/TheFishEy): hi +--- +name: "thefishey" +username: "TheFishEy" +message: "hi" +--- diff --git a/src/contributors/sp24/tomasohchom.md b/src/contributors/sp24/tomasohchom.md index 1b58b14..028aaa1 100644 --- a/src/contributors/sp24/tomasohchom.md +++ b/src/contributors/sp24/tomasohchom.md @@ -1 +1,5 @@ -[**@tomasohCHOM**](https://github.com/tomasohCHOM): Sveltist +--- +name: "tomasohCHOM" +username: "tomasohCHOM" +message: "Sveltist" +--- diff --git a/src/contributors/sp24/vicky.md b/src/contributors/sp24/vicky.md index a8e442e..e9820cf 100644 --- a/src/contributors/sp24/vicky.md +++ b/src/contributors/sp24/vicky.md @@ -1 +1,5 @@ -[**@vicky**](https://github.com/VickyaWei) hi here! +--- +name: "vicky" +username: "VickyaWei" +message: "hi here!" +--- diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index c19f31e..94813e1 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,6 +1,6 @@ --- interface Props { - title: string; + title: string; } const { title } = Astro.props; @@ -8,20 +8,20 @@ const { title } = Astro.props; - - - - - - - {title} - - - - + + + + + + + {title} + + + + - diff --git a/src/pages/sp24.astro b/src/pages/sp24.astro index e9e15b7..72ed0ba 100644 --- a/src/pages/sp24.astro +++ b/src/pages/sp24.astro @@ -1,6 +1,15 @@ --- import Layout from "../layouts/Layout.astro"; -const contributors: any[] = Object.values( + +type MarkdownEntry = { + frontmatter: { + name: string; + username: string; + message: string; + }; +}; + +const contributors: MarkdownEntry[] = Object.values( import.meta.glob("../contributors/sp24/*.md", { eager: true, }), @@ -42,9 +51,12 @@ const contributors: any[] = Object.values( { contributors.map((contributor) => (
  • - - {contributor.rawContent()} - +

    + + {contributor.frontmatter.name}: + {" "} + {contributor.frontmatter.message} +

  • )) } @@ -52,11 +64,21 @@ const contributors: any[] = Object.values(