Blog: Unify the looks of blog posts

Now that the render_blog_post macro is shared with the homepage
This commit is contained in:
2017-11-23 16:20:29 +01:00
parent cb7a23bc69
commit eeba87d333
4 changed files with 28 additions and 27 deletions

View File

@@ -59,6 +59,7 @@ def posts_view(project_id=None, project_url=None, url=None, *, archive=False, pa
for post in posts._items:
post.picture = get_file(post.picture, api=api)
post.url = url_for_node(node=post)
# Use the *_main_project.html template for the main blog
is_main_project = project_id == current_app.config['MAIN_PROJECT_ID']