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,6 +30,7 @@ pub async fn render_blog_post_list(
let site_footer = render_site_footer().await?;
let mut post_list = get_post_list::<BlogPostMetadata>(BLOG_POST_PATH).await?;
post_list.sort_by_key(|post| post.metadata.date);
post_list.retain(|post| post.metadata.published);
post_list.reverse();
let posts = match &tag {