{% macro post_preview(post) %}

{{ post.title }}

{{ post.date| date(format="%B %d, %Y") }} - {{ post.word_count }} words - {{ post.reading_time }} mins
{% if post.summary -%} {{ post.summary }} {% else %} {{ post.content | safe | striptags | truncate(length=300) }} {%- endif %} read more
{% endmacro input %}