{# Recent Posts Section - displays latest posts from any collection Rendered by homepage-builder when recent-posts section is configured Redesigned to match the visual language used on /blog/ #} {% set sectionConfig = section.config or {} %} {% set maxItems = sectionConfig.maxItems or 5 %} {% set showSummary = sectionConfig.showSummary if sectionConfig.showSummary is defined else true %} {% set excludeTypes = sectionConfig.excludeTypes or [] %} {% set primaryPosts = collections.posts if (collections and collections.posts) else [] %} {% set fallbackRecentPosts = collections.recentPosts if (collections and collections.recentPosts) else [] %} {% set listedPosts = primaryPosts | excludeUnlistedPosts | excludePostTypes(excludeTypes) %} {% if not (listedPosts and listedPosts.length) %} {% set listedPosts = fallbackRecentPosts | excludeUnlistedPosts | excludePostTypes(excludeTypes) %} {% endif %} {% if listedPosts and listedPosts.length %}

{{ sectionConfig.title or "Recent Posts" }}

{% if sectionConfig.showViewAll != false %} {{ sectionConfig.viewAllText or "View all posts" }} {% endif %}
{% endif %}