{% if paginator.posts.size %} {% assign all_posts = paginator.posts %} {% else %} {% assign all_posts = site.posts %} {% endif %}
{% for post in all_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 %}
{% if paginator.posts.size %} {% include posts/pagination.html %} {% endif %}