0%
<% pages.forEach(function (page) { %>
<% page.elements.forEach(function (element) { %> <% if (element.type === 'bg') { %>
<% } %> <% }) %>
<% page.elements.forEach(function (element) { %> <% if (element.type === 'pic') { %>
<% if (element.href) { %>
<%} else {%>
<%}%>
<% } %> <% if (element.type === 'text') { %>
<% if (element.href) { %>
<%= element.text %>
<%} else {%><%= element.text %><%}%>
<% } %> <% }) %>
<% }) %>