]> git.parisson.com Git - mezzo.git/commitdiff
add related post card
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 27 Apr 2016 05:56:18 +0000 (07:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 27 Apr 2016 05:56:18 +0000 (07:56 +0200)
app/templates/blog/blog_post_detail.html

index ed8024145478bc9d5a1b83673a8dcc934f832259..5868e45c52051345622915111181b6a8b3ded112 100644 (file)
 {% if related_posts %}
 <div id="related-posts">
 <h3>{% trans 'Related posts' %}</h3>
-<ul class="list-unstyled">
-{% for post in related_posts %}
-     <li><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></li>
-{% endfor %}
-</ul>
+ <div class="msry__container">
+    <div class="msry__sizer"></div>
+    {% for post in related_posts %}
+        {% include 'blog/includes/post_card.html' %}
+    {% endfor %}
+ </div>
 </div>
 {% endif %}
 {% endblock %}