<% if(post.photos && post.photos.length) { %> <% classTag = "post-with-image" %> <% } else { %> <% classTag = "post-without-image" %> <% } %>

<%= post.title || "Untitled" %>

<% if(post.photos && post.photos.length) { %> <%- post.title || 'Untitled' %> <% } %>

<%= post.description %>

Read More...

<% post.tags.data.forEach(function(tag) { %> #<%= tag.name %> <% }); %>