{% if paginator %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %} {% for post in posts %}
{% if post.description %} {{ post.description }} {% else %} {{ post.content | strip_html | truncatewords: 50 }} {% endif %}