<% if (post.description) {%> <%- post.description %> <% } else if (post.excerpt) {%> <%- post.excerpt %> <% } else if (post.content) {%> <% var br = post.content.indexOf('\n') %> <% if(br < 0) {%> <%- post.content %> <% } else {%> <%- post.content.substring(0, br) %> <% } %> <% } %>