{% for post in site.posts %}
{% if post.image %} {% else %} {% endif %}

{{ post.title }}

{{ post.date | date: '%Y, %b %d' }}    -    {% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}

{{ post.content | strip_html | truncatewords: 20 }}

{% endfor %}
{% include pagination.html %}