<% const sections = []; for (const item of items) { const name = item.section || "Other"; let bucket = sections.find((s) => s.name === name); if (!bucket) { bucket = { name: name, items: [] }; sections.push(bucket); } bucket.items.push(item); } %>
<% for (const section of sections) { %>

<%= section.name %>

<% for (const item of section.items) { %>
> <% if (item.image) { %> <%- item.title %> logo <% } %>
<%= item.title %>
<% (item.categories || []).forEach(function(cat) { %> <%= cat %> <% }) %>

<%= item.description %>

<% } %> <% } %>
Back to top