17 | <% if (post.description) {%> 18 | <%- post.description %> 19 | <% } else if (post.excerpt) {%> 20 | <%- post.excerpt %> 21 | <% } else if (post.content) {%> 22 | <% var br = post.content.indexOf('\n') %> 23 | <% if(br < 0) {%> 24 | <%- post.content %> 25 | <% } else {%> 26 | <%- post.content.substring(0, br) %> 27 | <% } %> 28 | <% } %> 29 |