{% extends 'coderedcms/blocks/base_block.html' %} {% load wagtailcore_tags wagtailimages_tags %} {% block block_render %} {% for page in pages %} {% with page.specific as article %}
{% if article.cover_image %} {% image article.cover_image fill-150x100 as cover_image %} {{cover_image.title}} {% endif %}
{{article.title}}
{{article.get_pub_date}} {% if article.get_pub_date and article.get_author_name %} • {% endif %} {{article.get_author_name}}
{{article.caption}}
{% if self.show_preview %}

{{article.body_preview}}

{% endif %}
{% endwith %} {% endfor %} {% endblock %}