{% macro render_blog_post(post, from_index=false) %} {% set summary = post.body.html.split('') %}

{{ post.title }}

Published on {{ post.pub_date }} with no comments.
{% if from_index and summary|length > 1 %} {{ summary[0] }}

Read more »

{% else %} {{ post.body }} {% endif %}

{% endmacro %}