From 32425613cdf11f3a0fee24f99cf2676033bf9ee7 Mon Sep 17 00:00:00 2001 From: Cassidy Williams <1454517+cassidoo@users.noreply.github.com> Date: Fri, 26 Aug 2022 00:36:03 -0500 Subject: [PATCH] Move posts to separate folder, update URLs to use slugs --- src/components/Post.astro | 2 +- src/pages/[post].astro | 14 ----------- src/pages/post/[slug].astro | 23 +++++++++++++++++++ src/pages/posts.astro | 17 +------------- .../10-tips-for-successful-public-speaking.md | 2 +- .../5-examples-of-linear-regression.md | 2 +- .../a-weekend-at-battlehack-boston.md | 2 +- .../adding-keyboard-shortcuts-to-react.md | 2 +- .../agua-caliente-writing-exercise.md | 2 +- .../building-my-s60x-keyboard.md | 2 +- .../post => posts}/closures-in-javascript.md | 2 +- .../crushing-the-impostor-syndrome.md | 2 +- .../post => posts}/css-image-values-spec.md | 2 +- .../post => posts}/css-text-carousel.md | 2 +- .../post => posts}/feedback-is-awesome.md | 2 +- src/{pages/post => posts}/finding-a-mentor.md | 2 +- src/{pages/post => posts}/hello-world.md | 2 +- .../post => posts}/how-ace-an-interview.md | 2 +- .../post => posts}/how-to-ask-for-help.md | 2 +- .../html-css-tutorial-part-2.md | 2 +- .../post => posts}/html-css-tutorial.md | 2 +- .../l4-digital-first-impressions.md | 2 +- .../post => posts}/making-the-whitney-api.md | 2 +- .../messing-with-sketch-club.md | 2 +- .../post => posts}/my-last-days-at-isu.md | 2 +- .../my-talk-at-tedxdesmoines.md | 2 +- .../post => posts}/one-year-at-venmo.md | 2 +- src/{pages/post => posts}/picking-my-brain.md | 2 +- .../post => posts}/subconscious-learning.md | 2 +- .../post => posts}/the-history-of-the-png.md | 2 +- .../the-laptop-you-need-for-college.md | 2 +- .../post => posts}/things-on-your-linkedin.md | 2 +- 32 files changed, 53 insertions(+), 59 deletions(-) delete mode 100644 src/pages/[post].astro create mode 100644 src/pages/post/[slug].astro rename src/{pages/post => posts}/10-tips-for-successful-public-speaking.md (98%) rename src/{pages/post => posts}/5-examples-of-linear-regression.md (99%) rename src/{pages/post => posts}/a-weekend-at-battlehack-boston.md (99%) rename src/{pages/post => posts}/adding-keyboard-shortcuts-to-react.md (97%) rename src/{pages/post => posts}/agua-caliente-writing-exercise.md (98%) rename src/{pages/post => posts}/building-my-s60x-keyboard.md (99%) rename src/{pages/post => posts}/closures-in-javascript.md (98%) rename src/{pages/post => posts}/crushing-the-impostor-syndrome.md (99%) rename src/{pages/post => posts}/css-image-values-spec.md (98%) rename src/{pages/post => posts}/css-text-carousel.md (98%) rename src/{pages/post => posts}/feedback-is-awesome.md (98%) rename src/{pages/post => posts}/finding-a-mentor.md (99%) rename src/{pages/post => posts}/hello-world.md (93%) rename src/{pages/post => posts}/how-ace-an-interview.md (99%) rename src/{pages/post => posts}/how-to-ask-for-help.md (98%) rename src/{pages/post => posts}/html-css-tutorial-part-2.md (99%) rename src/{pages/post => posts}/html-css-tutorial.md (99%) rename src/{pages/post => posts}/l4-digital-first-impressions.md (98%) rename src/{pages/post => posts}/making-the-whitney-api.md (99%) rename src/{pages/post => posts}/messing-with-sketch-club.md (96%) rename src/{pages/post => posts}/my-last-days-at-isu.md (99%) rename src/{pages/post => posts}/my-talk-at-tedxdesmoines.md (98%) rename src/{pages/post => posts}/one-year-at-venmo.md (97%) rename src/{pages/post => posts}/picking-my-brain.md (98%) rename src/{pages/post => posts}/subconscious-learning.md (98%) rename src/{pages/post => posts}/the-history-of-the-png.md (98%) rename src/{pages/post => posts}/the-laptop-you-need-for-college.md (99%) rename src/{pages/post => posts}/things-on-your-linkedin.md (98%) diff --git a/src/components/Post.astro b/src/components/Post.astro index 2d66e55..1278cfd 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -4,7 +4,7 @@ const { slug, title, tags, description, date } = Astro.props; ---
  • - {title} + {title}