diff --git a/automations/write_blog_pages.py b/automations/write_blog_pages.py index e3e84d4..003457b 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'[{i}](/images/{i})\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} ''' current_blog_file.write(content)