From ff9cfbd669bd8a47e34b276ceacdaaf98e96ba98 Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Fri, 17 Jan 2025 19:57:50 +0000 Subject: [PATCH] images on blogs --- automations/write_blog_pages.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/automations/write_blog_pages.py b/automations/write_blog_pages.py index e7dc363..b152cf4 100644 --- a/automations/write_blog_pages.py +++ b/automations/write_blog_pages.py @@ -35,11 +35,16 @@ with open(blog_index_path, "w") as blog_index_file: # Also write all the blogs to their respective pages with open(f"{root.path}{blog_file_path}","w") as current_blog_file: + images_div = "" + for i in blogs.blogs_array[current_blog][3]: + images_div += f'\n' content = f''' {header.header} -{blogs.blogs_array[current_blog][0]}: +{blogs.blogs_array[current_blog][0]}: {blogs.blogs_array[current_blog][1]} + Published: {day}/{year} at {second_of_the_day} +{images_div}