From: Thomas Fillon Date: Thu, 3 Sep 2015 07:51:30 +0000 (+0200) Subject: Fix BlogPost image position in Homepage X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a2c1be818858d12f8523ea09a62f5ec09a17e8a;p=diggersdigest.git Fix BlogPost image position in Homepage --- 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 %}