content-thumbnail.ejs 312 B

12345678
  1. <% var thumbnail %>
  2. <% if(post.cover != undefined) thumbnail = post.cover %>
  3. <% if(post.image != undefined) thumbnail = `/images/thumbnails/blog/${post.image.feature}` %>
  4. <a href="<%= url_for(post.path) %>" class="">
  5. <img class="img-fluid thumbnail" src="<%= thumbnail %>">
  6. <p><%= post.title %></p>
  7. </a>