content-thumbnail.ejs 543 B

12345678910111213
  1. <% var thumbnail %>
  2. <% if(thumbnail == undefined) thumbnail = post.thumbnail_image %>
  3. <% if(size == 6) thumbnail = post.cover_image %>
  4. <% if(size == 12) thumbnail = post.hero_image %>
  5. <div class="col-<%= size %>" style="margin-bottom: 30px;">
  6. <a href="<%= url_for(post.path) %>" class="thumbnail-link">
  7. <img class="img-fluid thumbnail thumbnail-col<%= size %> rounded" src="<%= thumbnail %>">
  8. <% if(show_title == true || show_title == undefined) { %>
  9. <p><%= post.title %></p>
  10. <% } %>
  11. </a>
  12. </div>