title = "Blog category" url = "/blog/category/:slug/:page?" layout = "default" is_hidden = 0 [blogPosts] pageNumber = "{{ :page }}" categoryFilter = "{{ :slug }}" postsPerPage = 8 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "blog-category" postPage = "post" [blogCategories] slug = "{{ :slug }}" displayEmpty = 0 categoryPage = "blog-category" [topPosts] period = 2 category = 0 postPerPage = 4 postPage = "post" slug = "{{ :slug }}" [searchInput] useAutoComplete = 0 autoCompleteResultCount = 5 showProviderBadge = 1 searchPage = "search-results.htm" [tags] results = 0 sortOrder = "created_at desc" == category) { $this->page->title = 'Topic: ' . $this->category->name . ' posts'; $this->page->description = $this->category->description; $this["categoryName"] = $this->category->name; } } ?> == {% set posts = blogPosts.posts %} {# COVER #} {% partial 'blog/cover' type='category' title=category.name lead=category.description %} {# POSTS #}

Latest posts from “{{ categoryName }}”

{% for post in posts %}
{% partial 'blog/post-card' post=post imageSettings=imageSettings %}
{% else %}
{% endfor %}
{# PAGINATION #} {% partial 'blog/pagination' mb='mb-5' blogPosts=blogPosts %}
{# POPULAR #} {% partial 'blog/popular' class="" title="Popular posts" posts=topPosts.mostVisitedPosts isPopular=true %}
{# SEARCH #} {% partial 'searchForm/default' text="Search for posts" class="mb-4" %} {# CATEGORIES #} {% partial 'blog/categories' blogCategories=blogCategories %} {# TAGS #} {% partial 'blog/tags' tags=tags class='mb-4' %}
{# CTA SECONDARY #} {% if this.theme.cta_secondary_enable == 1 %} {% partial 'global/cta' cta_primary_button_new_tab_enable="#{ this.theme.cta_secondary_primary_button_new_tab_enable}" cta_secondary_button_new_tab_enable="#{ this.theme.cta_secondary_secondary_button_new_tab_enable}" cta_title="#{ this.theme.cta_secondary_title }" cta_primary_button_icon="#{ this.theme.cta_secondary_primary_button_icon }" cta_primary_button_text="#{ this.theme.cta_secondary_primary_button_text }" cta_primary_button_link="#{ this.theme.cta_secondary_primary_button_link }" cta_secondary_button_icon="#{ this.theme.cta_secondary_secondary_button_icon }" cta_secondary_button_text="#{ this.theme.cta_secondary_secondary_button_text }" cta_secondary_button_link="#{ this.theme.cta_secondary_secondary_button_link }" %} {% endif %} {# CRITICAL CSS #} {% put styles %} {% partial 'critical/blog-category' %} {% endput %}