title.ejs 466 B

123456789101112131415
  1. <% if (post.link){ %>
  2. <h1 itemprop="name">
  3. <a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
  4. </h1>
  5. <% } else if (post.title){ %>
  6. <% if (index){ %>
  7. <h1 itemprop="name">
  8. <a class="<%= class_name %>" href="<%- url_for(post.path) %>"><%= post.title %></a>
  9. </h1>
  10. <% } else { %>
  11. <h1 class="<%= class_name %>" itemprop="name">
  12. <%= post.title %>
  13. </h1>
  14. <% } %>
  15. <% } %>