12345678910111213141516171819202122 |
- <div class="col-sm-<%- size %>">
- <div class="card <%= post.layout %>">
- <a href="<%= url_for(post.path) %>" class="text-decoration-none">
- <img class="img-fluid" src="<%= image %>">
- <div class="card-body">
- <h5 class="card-title"><%= post.title %></h5>
- <% if(post.description == "" || post.description == undefined) { %>
- <p class="text-muted">
- <i><%= timeAgo(new Date(post.date)) %></i>
- </p>
- <% } else { %>
- <p><%= post.description %></p>
- <% } %>
- </div>
- <% if(post.description != "" && post.description != undefined) { %>
- <div class="card-footer text-muted">
- <i><%= timeAgo(new Date(post.date)) %></i>
- </div>
- <% } %>
- </a>
- </div>
- </div>
|