images on blogs
This commit is contained in:
parent
9c9ce4757e
commit
ff9cfbd669
@ -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'<img width="200" src="/images/{i}">\n'
|
||||
content = f'''
|
||||
{header.header}
|
||||
{blogs.blogs_array[current_blog][0]}:
|
||||
<b>{blogs.blogs_array[current_blog][0]}:</b>
|
||||
{blogs.blogs_array[current_blog][1]}
|
||||
|
||||
<i>Published: {day}/{year} at {second_of_the_day}</i>
|
||||
{images_div}
|
||||
</pre>
|
||||
<style>
|
||||
pre \u007b
|
||||
|
Loading…
x
Reference in New Issue
Block a user