]> git.parisson.com Git - diggersdigest.git/commitdiff
Fix BlogPost image position in Homepage
authorThomas Fillon <thomas@parisson.com>
Thu, 3 Sep 2015 07:51:30 +0000 (09:51 +0200)
committerThomas Fillon <thomas@parisson.com>
Thu, 3 Sep 2015 07:51:30 +0000 (09:51 +0200)
diggersdigest/templates/index.html

index bce31b373dea2cce7c0057b84320dca180307f01..338b9addb7204931ca2bcb73aecf06a5b391eff9 100644 (file)
 {% if recent_posts %}
 <h2>{% trans "Recent Posts" %}</h2>
 {% for recent_post in recent_posts %}
+{% if settings.BLOG_USE_FEATURED_IMAGE and recent_post.featured_image %}
+        {% block recent_post_list_post_featured_image %}
+        <a href="{{ recent_post.get_absolute_url }}">
+            <img class="img-thumbnail pull-left" src="{{ MEDIA_URL }}{% thumbnail recent_post.featured_image 90 90 %}">
+        </a>
+        {% endblock %}
+    {% endif %}
 <h3><a href="{{ recent_post.get_absolute_url }}"
     >{{ recent_post.title }}</a></h3>
 
     {% 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 %}
-        <a href="{{ recent_post.get_absolute_url }}">
-            <img class="img-thumbnail pull-left" src="{{ MEDIA_URL }}{% thumbnail recent_post.featured_image 90 90 %}">
-        </a>
-        {% endblock %}
-    {% endif %}
+    
 </div><!-- /recent-summary -->
 {% endfor %}
 {% endif %}