title = "Blog" url = "/blog/:page?" layout = "default" is_hidden = 0 [blogPosts] pageNumber = "{{ :page }}" postsPerPage = 8 noPostsMessage = "No posts were found." sortOrder = "published_at desc" categoryPage = "blog-category" postPage = "post" [blogCategories] slug = "{{ :slug }}" displayEmpty = 1 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" == == {% set posts = blogPosts.posts %} {# COVER #} {% partial 'blog/cover' type='blog' title=this.theme.blog_ptitle lead=this.theme.blog_plead %} {# LATEST POSTS #}

Latest posts

{% for post in posts %}
{% partial 'blog/post-card' post=post imageSettings=imageSettings %}
{% else %}
{% endfor %}
{# PAGINATION #} {% partial 'blog/pagination' mb='mb-0' 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' %} {% endput %}