<%- partial('_partial/bg-cover') %>
<%- partial('_widget/category-cloud') %> <% var hashCode = function (str) { if (!str && str.length === 0) { return 0; } var hash = 0; for (var i = 0, len = str.length; i < len; i++) { hash = ((hash << 5) - hash) + str.charCodeAt(i); hash |= 0; } return hash; }; %>
<% page.posts.sort('date').reverse().forEach(post => { %>
<% if (post.img) { %> <%= post.title %> <% } else { %> <% var featureimg = theme.featureImages[Math.abs(hashCode(post.title) % theme.featureImages.length)]; %> <%= post.title %> <% } %> <%= post.title %>
<% if (post.summary && post.summary.length > 0) { %> <%- post.summary %> <% } else { %> <%- strip_html(post.content).substring(0, 120) %> <% } %>
<%= date(post.date, config.date_format) %> <% if (post.categories && post.categories.length > 0) { %> <% post.categories.forEach(category => { %> <% }); %> <% } else if (post.author && post.author.length > 0) { %> <%- post.author %> <% } else { %> <%- config.author %> <% } %>
<% if (post.tags && post.tags.length) { %> <% } %>
<% }); %>
<% if (page.total > 1) { %> <%- partial('_partial/paging') %> <% } %>