--- action: 'cmscontent:archive' template: inner protocol: all published: true name: Blog url: /archives/:type description: 'blog template' ---
{% if archives | length > 0 or publishedPosts > 0 %} {% paginate archives by 5 %} {% set publishedPosts = 0 %}
{% for post in archives %} {% if post.status == "published" %} {% set publishedPosts = publishedPosts + 1 %} {% endif %}

{{ post.title }}

{{ post.excerpt | unescape }}

{% endfor %}
{% navigation %}
{% endpaginate %} {% else %}

No posts found

{% endif %}