From 5154f4da7743b0d20adf95dbd417a37e247bba57 Mon Sep 17 00:00:00 2001 From: n3parikh Date: Sun, 12 Sep 2021 00:29:14 -0400 Subject: [PATCH 1/3] resume news event --- content/news/2021/fall/2021-09-12-n3parikh.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 content/news/2021/fall/2021-09-12-n3parikh.md diff --git a/content/news/2021/fall/2021-09-12-n3parikh.md b/content/news/2021/fall/2021-09-12-n3parikh.md new file mode 100644 index 00000000..6e90b83d --- /dev/null +++ b/content/news/2021/fall/2021-09-12-n3parikh.md @@ -0,0 +1,15 @@ +--- +author: 'n3parikh' +date: 'Wed Jul 14 2021 01:00:00 GMT-0400 (Eastern Daylight Time)' +--- +📢 UW’s Tech Clubs are proud to present to you Bootcamp! This event is a new initiative brought to you to help sharpen your resumes happening on September 19th from 6 PM to 10 PM ET. + +At this time, we are looking for mentors who are willing to critique resumes, and the applications have officially opened. 📝 In order to qualify to be a mentor, you must at least have started your second coop. This is a great opportunity to help others with the knowledge you have, and make a difference in the UW Tech community. + +If that interests you, please sign up! 💻 We’ll be emailing you more information closer to the event date. + +👉 Sign up at https://bit.ly/bootcamp-resumes-interviews + +Alternatively, you can email us at exec@csclub.uwaterloo.ca specifying that you have started at least your second co-op, your current education path, and your numerical Discord ID. + +📅 Deadline to Sign Up: Friday 17th September 11:59 PM ET -- 2.39.2 From a921b7d0908d8602903e918ae3259e045fa1eb03 Mon Sep 17 00:00:00 2001 From: Neil Parikh Date: Sun, 12 Sep 2021 00:38:17 -0400 Subject: [PATCH 2/3] update date --- content/news/2021/fall/2021-09-12-n3parikh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/news/2021/fall/2021-09-12-n3parikh.md b/content/news/2021/fall/2021-09-12-n3parikh.md index 6e90b83d..8a6033f1 100644 --- a/content/news/2021/fall/2021-09-12-n3parikh.md +++ b/content/news/2021/fall/2021-09-12-n3parikh.md @@ -1,6 +1,6 @@ --- author: 'n3parikh' -date: 'Wed Jul 14 2021 01:00:00 GMT-0400 (Eastern Daylight Time)' +date: 'Wed Sep 12 2021 01:00:00 GMT-0400 (Eastern Daylight Time)' --- 📢 UW’s Tech Clubs are proud to present to you Bootcamp! This event is a new initiative brought to you to help sharpen your resumes happening on September 19th from 6 PM to 10 PM ET. -- 2.39.2 From 867b61f26823cd5275c748b941e6f731870c05ac Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Sun, 12 Sep 2021 01:00:37 -0400 Subject: [PATCH 3/3] Get future news by removing filter --- content/news/2021/fall/2021-09-12-n3parikh.md | 6 +++--- lib/news.ts | 13 +++++-------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/content/news/2021/fall/2021-09-12-n3parikh.md b/content/news/2021/fall/2021-09-12-n3parikh.md index 8a6033f1..3d32fba9 100644 --- a/content/news/2021/fall/2021-09-12-n3parikh.md +++ b/content/news/2021/fall/2021-09-12-n3parikh.md @@ -1,8 +1,8 @@ --- author: 'n3parikh' -date: 'Wed Sep 12 2021 01:00:00 GMT-0400 (Eastern Daylight Time)' +date: 'Wed Sep 12 2021 00:00:00 GMT-0400 (Eastern Daylight Time)' --- -📢 UW’s Tech Clubs are proud to present to you Bootcamp! This event is a new initiative brought to you to help sharpen your resumes happening on September 19th from 6 PM to 10 PM ET. +📢 UW’s Tech Clubs are proud to present to you Bootcamp! This event is a new initiative brought to you to help sharpen your resumes happening on September 19th from 6 PM to 10 PM ET. At this time, we are looking for mentors who are willing to critique resumes, and the applications have officially opened. 📝 In order to qualify to be a mentor, you must at least have started your second coop. This is a great opportunity to help others with the knowledge you have, and make a difference in the UW Tech community. @@ -10,6 +10,6 @@ If that interests you, please sign up! 💻 We’ll be emailing you more informa 👉 Sign up at https://bit.ly/bootcamp-resumes-interviews -Alternatively, you can email us at exec@csclub.uwaterloo.ca specifying that you have started at least your second co-op, your current education path, and your numerical Discord ID. +Alternatively, you can email us at exec@csclub.uwaterloo.ca specifying that you have started at least your second co-op, your current education path, and your numerical Discord ID. 📅 Deadline to Sign Up: Friday 17th September 11:59 PM ET diff --git a/lib/news.ts b/lib/news.ts index a5ce2bc7..2db87948 100644 --- a/lib/news.ts +++ b/lib/news.ts @@ -91,12 +91,9 @@ export async function getRecentNews(): Promise { ) ).flat(); - return news - .filter((news) => new Date(news.metadata.date).getTime() <= Date.now()) - .sort((a, b) => { - return ( - new Date(b.metadata.date).getTime() - - new Date(a.metadata.date).getTime() - ); - }); + return news.sort((a, b) => { + return ( + new Date(b.metadata.date).getTime() - new Date(a.metadata.date).getTime() + ); + }); } -- 2.39.2