{% assign show_more = false %} {% if include.limit > 0 %} {% assign limit = include.limit %} {% else %} {% assign limit = 0 %} {% endif %}
{% for post in site.posts %} {% include components/post-snippet.html post=post %} {% if forloop.index == limit %} {% if site.index_url %} {% assign show_more = true %} {% endif %} {% break %} {% else %}
{% endif %} {% endfor %} {% if show_more %}
See More Posts {% endif %}