<% if (post.link){ %>

<% } else if (post.title){ %> <% if (index){ %>

<%= post.title %>

<% } else { %>

<%= post.title %>

<% } %> <% } %>