diff options
author | 2025-04-02 03:37:07 +0100 | |
---|---|---|
committer | 2025-04-02 03:37:07 +0100 | |
commit | bb00d178d77ee6ca604cd4c6ed2c4e3ba81aab64 (patch) | |
tree | 60ceeededdac47fb324ec7c242148476b7c94e94 /src | |
parent | 92c8d59b846592ae71136f044b2197091c2a782d (diff) | |
download | blossom-bb00d178d77ee6ca604cd4c6ed2c4e3ba81aab64.tar.gz blossom-bb00d178d77ee6ca604cd4c6ed2c4e3ba81aab64.tar.bz2 blossom-bb00d178d77ee6ca604cd4c6ed2c4e3ba81aab64.zip |
order poems by published_at
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8e31fee..ebc480e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,7 +180,7 @@ async fn get_poem(Path(poem): Path<String>, locale: Locale) -> Result<templates: #[handler] async fn get_poetry(locale: Locale) -> Result<templates::Poetry> { let mut poems = Poem::get_articles().await?; - poems.sort_by_key(|poem| poem.created_at); + poems.sort_by_key(|poem| poem.published_at); poems.reverse(); Ok(templates::Poetry { title: locale.text("title-poetry").unwrap(), |