title = "Blog tag" url = "/blog/tag/:slug/:page?" layout = "default" is_hidden = 0 [searchPosts] slug = "{{ :slug }}" pageNumber = "{{ :page }}" postsPerPage = 8 postPage = "post" sortOrder = "published_at desc" [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" == components['searchPosts']->tag) { $this->page->title = 'Topic: ' . $this->components['searchPosts']->tag->name . ' posts'; } } ?> == {% set posts = searchPosts.posts %} {% set tag = searchPosts.tag %} {# COVER #} {% partial 'blog/cover' type='tag' title=tag.name lead='' %} {# POSTS #}

Total results: {{ searchPosts.posts.total }}

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