Hello all,
Has anyone tried including featured images with the default recent posts
block? If so, I'd love to see how this is done.
Something like this:
{% block blog_recent_posts %}
{% blog_recent_posts 5 as recent_posts %}
{% if recent_posts %}
<h3>{% trans "Recent Posts" %}</h3>
<ul class="list-unstyled recent-posts">
{% for recent_post in recent_posts %}
<li><img src="{{ MEDIA_URL }}{% thumbnail recent_post.featured_image 10 10
%}"><a href="{{ recent_post.get_absolute_url }}"
>{{ recent_post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.