images
This commit is contained in:
parent
d995cdc67c
commit
174670daa2
@ -35,11 +35,16 @@ with open(blog_index_path, "w") as blog_index_file:
|
|||||||
|
|
||||||
# Also write all the blogs to their respective pages
|
# Also write all the blogs to their respective pages
|
||||||
with open(f"{root.path}{blog_file_path}","w") as current_blog_file:
|
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'''
|
content = f'''
|
||||||
{header.header}
|
{header.header}
|
||||||
{blogs.blogs_array[current_blog][0]}:
|
**{blogs.blogs_array[current_blog][0]}:**
|
||||||
{blogs.blogs_array[current_blog][1]}
|
{blogs.blogs_array[current_blog][1]}
|
||||||
|
|
||||||
_Published: {day}/{year} at {second_of_the_day}_
|
_Published: {day}/{year} at {second_of_the_day}_
|
||||||
|
{images_div}
|
||||||
'''
|
'''
|
||||||
current_blog_file.write(content)
|
current_blog_file.write(content)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user