url = "/blog/:page?" layout = "default" title = "Blog" meta_description = "Live demo of the DronePhotography theme for October CMS." [blogPosts] pageNumber = "{{ :page }}" postsPerPage = 5 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "category" postPage = "post" [blogCategories] slug = "{{ :slug }}" displayEmpty = 0 categoryPage = "category" == {% set posts = blogPosts.posts %} {% partial "global/page-cover" title="Blog" align="left" %} {# BLOG AREA #}
{# POSTS #} {# 768x432 #} {% for post in posts %} {% set featured_image = post.featured_images.first %}
{{ featured_image.description ? featured_image.description : post.title }}
{{ post.published_at|date('d') }}

{{ post.published_at|date('M') }}

{{ post.title }}

{{ post.summary|nl2br }}

{% if post.categories.count %} {% endif %}
{% endfor %} {# PAGINATION #} {% if posts.lastPage > 1 %} {% endif %}
{% if blogCategories.categories|length %}
{% endif %}