<% if (showTitle) { %>
<%- title || 'Gallery' %>
<% } %> <% if (showDownload) { // If there is a password required for the download, format it as a query string const passwordQuery = Object.entries(password).length ? '?' + (new URLSearchParams(password)).toString() : '' %>
<% } %>
<% items.forEach(item => { if (item.video) { %>
data-download-url="<%- item.downloadUrl %>" <% } %> >
<% } else { %>
data-download-url="<%- item.downloadUrl %>" <% } %> >
<% } }) %>