diff --git a/app/src/components/api.rs b/app/src/components/api.rs index 6419da7..42012ce 100644 --- a/app/src/components/api.rs +++ b/app/src/components/api.rs @@ -23,10 +23,10 @@ pub async fn get_articles(article_type: ArticleType) -> Result, Ser use sqlx::*; let query = match article_type { - ArticleType::All => "select * from blog order by date", - ArticleType::Blog => "select * from blog where content_type like 'blog'", - ArticleType::Game => "select * from blog where content_type like 'game'", - ArticleType::Project => "select * from blog where content_type like 'project'", + ArticleType::All => "select * from blog order by date desc", + ArticleType::Blog => "select * from blog where content_type like 'blog' order by date desc", + ArticleType::Game => "select * from blog where content_type like 'game' order by date desc", + ArticleType::Project => "select * from blog where content_type like 'project' order by date desc", }; let pool: SqlitePool = use_context::().expect("couldn't get pool context"); diff --git a/public/blog/20220207-swim.md b/public/blog/20220207-swim.md index 43fa047..c0579a4 100644 --- a/public/blog/20220207-swim.md +++ b/public/blog/20220207-swim.md @@ -1,7 +1,7 @@ ```toml content_type = "blog" title = "Swim" -date = "2022 2 7" +date = "2022 02 07" ```

diff --git a/public/blog/20220506-change.md b/public/blog/20220506-change.md index 63f8934..f734600 100644 --- a/public/blog/20220506-change.md +++ b/public/blog/20220506-change.md @@ -1,7 +1,7 @@ ```toml content_type = "blog" title = "Change" -date = "2022 5 6" +date = "2022 05 06" ```

diff --git a/public/blog/20220520-nvidia.md b/public/blog/20220520-nvidia.md index e6b8006..ab91f81 100644 --- a/public/blog/20220520-nvidia.md +++ b/public/blog/20220520-nvidia.md @@ -1,7 +1,7 @@ ```toml content_type = "blog" title = "It's about time, NVIDIA" -date = "2022 5 20" +date = "2022 05 20" ``` It's about time... NVIDIA has finally released and is starting to diff --git a/public/blog/20220520-snek.md b/public/blog/20220520-snek.md index 9b6186a..782f403 100644 --- a/public/blog/20220520-snek.md +++ b/public/blog/20220520-snek.md @@ -1,7 +1,7 @@ ```toml content_type = "game" title = "snek" -date = "2022 5 20" +date = "2022 05 20" ``` [snek](https://old.doordesk.net/snek) is a simple snake game made with JS/Canvas. diff --git a/public/blog/20220529-housing.md b/public/blog/20220529-housing.md index 385879a..c86d5c4 100644 --- a/public/blog/20220529-housing.md +++ b/public/blog/20220529-housing.md @@ -1,7 +1,7 @@ ```toml content_type = "project" title = "Predicting Housing Prices" -date = "2022 5 29" +date = "2022 05 29" ``` A recent project I had for class was to use [scikit-learn](https://scikit-learn.org/stable/index.html) to create a regression model that will predict the price of a house based on some features of that house. diff --git a/public/blog/20220602-back.md b/public/blog/20220602-back.md index 38ae3ca..f5ac493 100644 --- a/public/blog/20220602-back.md +++ b/public/blog/20220602-back.md @@ -1,7 +1,7 @@ ```toml content_type = "blog" title = "Back to School" -date = "2022 6 2" +date = "2022 06 2" ``` ### Where the hell have I been!? diff --git a/public/blog/20220614-reddit.md b/public/blog/20220614-reddit.md index 2de45ca..81e6191 100644 --- a/public/blog/20220614-reddit.md +++ b/public/blog/20220614-reddit.md @@ -1,7 +1,7 @@ ```toml content_type = "project" title = "What goes into a successful Reddit post?" -date = "2022 6 14" +date = "2022 06 14" ``` In an attempt to find out what about a Reddit post makes it successful I will use some diff --git a/public/blog/20220701-progress.md b/public/blog/20220701-progress.md index 692cc0b..41d0e12 100644 --- a/public/blog/20220701-progress.md +++ b/public/blog/20220701-progress.md @@ -1,7 +1,7 @@ ```toml content_type = "blog" title = "It's a post about nothing!" -date = "2022 7 1" +date = "2022 07 1" ``` The progress update diff --git a/public/blog/20220911-adam.md b/public/blog/20220911-adam.md index 2963722..d71ed73 100644 --- a/public/blog/20220911-adam.md +++ b/public/blog/20220911-adam.md @@ -1,7 +1,7 @@ ```toml content_type = "game" title = "adam" -date = "2022 9 11" +date = "2022 09 11" ``` [adam](https://old.doordesk.net/games/adam/) is a quick fps demo to test how well WebGL diff --git a/public/blog/20220913-balls.md b/public/blog/20220913-balls.md index e19f109..0664f01 100644 --- a/public/blog/20220913-balls.md +++ b/public/blog/20220913-balls.md @@ -1,7 +1,7 @@ ```toml content_type = "game" title = "balls" -date = "2022 9 13" +date = "2022 09 13" ``` [balls](https://old.doordesk.net/games/balls/) is another demo to test WebGL performance. diff --git a/public/blog/20221009-fps.md b/public/blog/20221009-fps.md index 4642d91..dcbed92 100644 --- a/public/blog/20221009-fps.md +++ b/public/blog/20221009-fps.md @@ -1,7 +1,7 @@ ```toml content_type = "game" title = "fps" -date = "2022 10 9" +date = "2022 10 09" ``` [fps](https://old.doordesk.net/games/fps/) is a Godot/WebGL experiment from scratch with diff --git a/public/blog/20230427-lightning.md b/public/blog/20230427-lightning.md index 8b2f2e1..9f6d477 100644 --- a/public/blog/20230427-lightning.md +++ b/public/blog/20230427-lightning.md @@ -1,7 +1,7 @@ ```toml content_type = "project" title = "Lightning" -date = "2023 4 27" +date = "2023 04 27" ``` [Lightning](https://lightning.doordesk.net) is a mapping/data vis project for finding