description = "News layout" [blogPosts] pageNumber = "{{ :page }}" categoryFilter = "news" postsPerPage = "{{ 8 }}" noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "article" postPage = "article" ==
{% partial "head" %} {% partial "header" %}

# {{ this.page.id }}

{% set posts = blogPosts.posts %} {% for post in posts %}
{% for image in post.featured_images %}

{% endfor %}

### {{ post.title }}

{{ post.excerpt |raw }}
{{ post.published_at|date('d') }}
{{ post.published_at|date('M Y') }}

{{ post.user.full_name }}

{% endfor %}

{% if posts.currentPage > 1 %}
- ← Prev
{% endif %} {% for page in 1..posts.lastPage %}
- {{ page }}
{% endfor %} {% if posts.lastPage > posts.currentPage %}
- Next →
{% endif %}

{% partial "footer" %}