[F] Fix image

This commit is contained in:
Hykilpikonna
2023-03-16 09:47:33 -04:00
parent d6a667d99a
commit a2183fdeeb
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ if __name__ == '__main__':
# Process iamges
post['content'] = re.sub(r'!\[\[\.\/(.*)\|(.*)\]\]', r'<figure><img src="{src}/content/posts/\1" /><caption>\2</caption></figure>', post['content'])
post['content'] = re.sub(r'!\[\[(.*)\|(.*)\]\]', r'<figure><img src="{src}/content/images/\1" /><caption>\2</caption></figure>', post['content'])
post['content'] = re.sub(r'!\[\[\.\/(.*)\]\]', r'<img src="{src}/content/posts/\1" />', post['content'])
posts.sort(key=lambda x: x['date'], reverse=True)