1
0
mirror of https://gitlab.com/Anson-Projects/zine.git synced 2025-07-27 08:41:25 +00:00

Keep only first instance of each blog

This commit is contained in:
2024-05-20 22:12:24 -06:00
parent fc66f7bf8c
commit 174e622e3d
2 changed files with 9 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ fn main() -> Result<(), Box<dyn Error>> {
posts.insert(0, post_with_image);
}
utilities::retain_first_main_url(&mut posts);
posts.truncate(16);
let mut old_posts = all_posts;