description = "Blog 1 Section" [viewBag] [blogPosts latestPosts] pageNumber = "{{ :page }}" postsPerPage = 12 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "blog/blog-category" postPage = "blog/blog-post" ==
{% if data.section_blog1_header or data.section_blog1_subheader %}

{{ data.section_blog1_header }}

{{ data.section_blog1_subheader }}
{% endif %}
{% set aos = ['flip-left', 'flip-up', 'flip-right'] %} {% set posts = latestPosts.posts %} {#{% if data.section_blog1_type == 'latest' %}{% set posts = latestPosts.posts %}{% else %}{% set posts = topPosts.mostVisitedPosts %}{% endif %}#} {% for post in posts|slice(0, (data.section_blog1_number)) %}
{% if post.featuredvideo.hasVideo %}
{{ post.featuredvideo.iframe_content|raw }}
{% elseif post.featured_images.count == 1 or (data.section_blog1_carousel == '0' and post.featured_images.count > 1) %} {% elseif data.section_blog1_carousel and post.featured_images.count > 1 %} {% elseif post.featuredvideo.hasVideo %}
{{ post.featuredvideo.iframe_content|raw }}
{% endif %}
{% if data.section_blog1_category or data.section_blog1_date %}
{% if data.section_blog1_type == 'latest' and data.section_blog1_category %} {% for category in post.categories %} {{ category.name }}{% if not loop.last %}, {% endif %} {% endfor %} {% endif %} {% if data.section_blog1_date %} {{ post.published_at|date('M d, Y') }} {% endif %}
{% endif %}
{{ post.title }}
{% if data.section_blog1_desc %}

{{ html_limit(post.summary, 100)|raw }}

{% endif %}
{% else %}
{{ noPostsMessage }}
{% endfor %}