<% posts.forEach(function(post){ %><%- include('post-card', { post: post }) %><% }); %> <%# Grid view: OOB-append the same posts as tiles. htmx inserts the wrapper node itself (beforeend), so display:contents lets the tiles lay out as direct grid items instead of nesting under an extra box. %>
<% posts.forEach(function(post){ %><%- include('post-tile', { post: post }) %><% }); %>
<%- include('load-more', { hasMore: hasMore, nextOffset: nextOffset, moreBase: moreBase, moreTarget: '#post-list', morePath: (typeof morePath !== 'undefined' ? morePath : '/'), oob: true }) %>