<%- partial('meta', {post: post, position: 'header'}) %> <% (post.photos||[]).forEach(function(photo){ %> <% }) %> <%- post.content %> <% if(theme.layout.on_post.article_footer && (page.layout == 'post')){ %> <%- partial('../_widget/load', {widgets: theme.layout.on_post.article_footer, where: 'article'}) %> <% } %> <% if(post.layout == 'post' || post.layout == 'page'){ %> <%- partial('meta', {post: post, position: 'footer'}) %> <% } %> <% if(post.prev || post.next){ %> <% if(post.prev){ %> <% if(post.prev.title){ %> <%= post.prev.title %> <% } else if (post.prev.date) { %> <%= date(post.prev.date, config.date_format) %> <% } %> <% if (post.prev.tags && post.prev.tags.length && post.prev.tags.each) { %> <% var items = []; post.prev.tags.each(function(item){ items.push('' + item.name + ''); }); %> <%- items.join(' ') %> <% } %> <% } %> <% if(post.next){ %> <% if(post.next.title){ %> <%= post.next.title %> <% } else if (post.next.date) { %> <%= date(post.next.date, config.date_format) %> <% } %> <% if (post.next.tags && post.next.tags.length && post.next.tags.each) { %> <% var items = []; post.next.tags.each(function(item){ items.push('' + item.name + ''); }); %> <%- items.join(' ') %> <% } %> <%} %> <%} %>