From 4a2c1be818858d12f8523ea09a62f5ec09a17e8a Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Thu, 3 Sep 2015 09:51:30 +0200 Subject: [PATCH] Fix BlogPost image position in Homepage --- diggersdigest/templates/index.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/diggersdigest/templates/index.html b/diggersdigest/templates/index.html index bce31b3..338b9ad 100644 --- a/diggersdigest/templates/index.html +++ b/diggersdigest/templates/index.html @@ -35,6 +35,13 @@ {% if recent_posts %}

{% trans "Recent Posts" %}

{% for recent_post in recent_posts %} +{% if settings.BLOG_USE_FEATURED_IMAGE and recent_post.featured_image %} + {% block recent_post_list_post_featured_image %} + + + + {% endblock %} + {% endif %}

{{ recent_post.title }}

@@ -47,13 +54,7 @@ {% if recent_post.categories %} {{ recent_post.categories. }} {% endif %} - {% if settings.BLOG_USE_FEATURED_IMAGE and recent_post.featured_image %} - {% block recent_post_list_post_featured_image %} - - - - {% endblock %} - {% endif %} + {% endfor %} {% endif %} -- 2.39.5