% // Add an og-image using the first image's thumbnail if (items?.[0]?.thumbnailUrl) { %>
<% } %>
<% if (showTitle) { %>
<%- title || 'Gallery' %>
<% } %> <% if (showDownload) { %>
<% } %>
<% // Load the first 50 thumbnails, then load more as the user scrolls. See web.js items.slice(0, 50).forEach(item => { %><%- item.html %> <% }) %>