content-card.ejs 926 B

12345678910111213141516171819202122
  1. <div class="col-sm-<%- size %>">
  2. <div class="card <%= post.layout %>">
  3. <a href="<%= url_for(post.path) %>" class="text-decoration-none">
  4. <img class="img-fluid" src="<%= image %>">
  5. <div class="card-body">
  6. <h5 class="card-title"><%= post.title %></h5>
  7. <% if(post.description == "" || post.description == undefined) { %>
  8. <p class="text-muted">
  9. <i><%= timeAgo(new Date(post.date)) %></i>
  10. </p>
  11. <% } else { %>
  12. <p><%= post.description %></p>
  13. <% } %>
  14. </div>
  15. <% if(post.description != "" && post.description != undefined) { %>
  16. <div class="card-footer text-muted">
  17. <i><%= timeAgo(new Date(post.date)) %></i>
  18. </div>
  19. <% } %>
  20. </a>
  21. </div>
  22. </div>