<% if (post.cover) { %>
<%= post.title %>
<% } %>
<%= post.title %> <% if (post.cover) { %> <%- truncate(strip_html(post.content), { length: 120 }) %> <% } else { %> <%- truncate(strip_html(post.content), { length: 200 }) %> <% } %>