url = "/blog/category/:slug/:page?" layout = "default" title = "Category" meta_description = "Live demo of the DronePhotography theme for October CMS." [blogPosts] pageNumber = "{{ :page }}" categoryFilter = "{{:slug}}" postsPerPage = 5 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "category" postPage = "post" [blogCategories] slug = "{{ :slug }}" displayEmpty = 0 categoryPage = "category" == category) { $this->page->title = $this->category->name; $this->page->description = $this->category->description; $this["categoryName"] = $this->category->name; } } ?> == {% partial "global/page-cover" title=category.name align="left" %} {# BLOG AREA #}
{# POSTS #} {# 750x422 #} {% 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 %}