blog post thumbnails

This commit is contained in:
2024-08-16 20:22:19 +02:00
parent fdfa69c4b4
commit 9b81d70ae2
28 changed files with 178 additions and 32 deletions

View File

@ -30,11 +30,8 @@ pub async fn get_post_list<'de, Metadata: DeserializeOwned>(
.unwrap_or_else(|_| "DEV".to_owned())
.eq("PROD")
{
posts = posts
.into_iter()
.filter(|post| !post.slug.starts_with("dev"))
.collect()
posts.retain(|post| !post.slug.starts_with("dev"))
}
return Ok(posts);
Ok(posts)
}